Search - User list
Full Version: Arduino Mega
Root » General » Arduino Mega
1
JLPete
Anybody have a picture or pin outs for the mega board?
geoffculp
JLPete,

The only other pins used on the Arduino Mega are the extra hardware-interrupt pins (18-21).

#define KB_PIN_METER_A            2
#define KB_PIN_METER_B            3
#define KB_PIN_RELAY_A            4
#define KB_PIN_RELAY_B            5
#define KB_PIN_ONEWIRE_THERMO     7
#define KB_PIN_ONEWIRE_PRESENCE   8
#define KB_PIN_ALARM              9
#define KB_PIN_BUZZER             11
#define KB_PIN_TEST_PULSE         12
// Atmega1280 (aka Arduino mega) section
#define KB_PIN_METER_C            21
#define KB_PIN_METER_D            20
#define KB_PIN_METER_E            19
#define KB_PIN_METER_F            18


Cheers,
Geoff
JLPete
Geoff,

Hello from Wauwatosa, WI. Why does it not surprise me that Kegbots are being built in Milwaukee? Any way I have seen this in the Kegboard_config header but on my Mega. pins 18 19 20 and 21 are labeled as serial RX and TX pins while pins 2 and 3 are part of the Pulse Width Modulation bus. I understand all pins can be digital inputs but it seems none of the pins actually label as inputs are being used, why?

Also I have not reviewd the keg board code entirely yet but it appears with a few addtional setup variables, larger arrays and 2 addtional functions I could monitor 8 lines. Like I said I haven't reviewed the code and my C++ is really rusty, like 15 years ago in college rusty, but is 8 lines on one device possible.

thanks for the responses. If I get this running you might have to come check it out.

Peter
geoffculp
Quick break from work, is it almost 5 o'clock yet?

JLPete
Any way I have seen this in the Kegboard_config header but on my Mega. pins 18 19 20 and 21 are labeled as serial RX and TX pins while pins 2 and 3 are part of the Pulse Width Modulation bus. I understand all pins can be digital inputs but it seems none of the pins actually label as inputs are being used, why?

Not sure, but the Arduino definitely has it's quirks. See http://arduino.cc/en/Main/ArduinoBoardMega for the pin assignments.

JLPete
Also I have not reviewd the keg board code entirely yet but it appears with a few addtional setup variables, larger arrays and 2 addtional functions I could monitor 8 lines. Like I said I haven't reviewed the code and my C++ is really rusty, like 15 years ago in college rusty, but is 8 lines on one device possible.

The Arduino Mega has 6 hardware interrupt pins which monitor\count the pulses coming from the flow sensors.
See http://arduino.cc/en/Reference/AttachInterrupt for why you don't what to use the other pins for counting the flow meter pulses.

JLPete
If I get this running you might have to come check it out.

I'd be willing to give you a overview of kegbotmilwaukee sometime. Might be helpful for you to get going on your own kegbot.

Cheers,
Geoff

mike
JLPete
Also I have not reviewd the keg board code entirely yet but it appears with a few addtional setup variables, larger arrays and 2 addtional functions I could monitor 8 lines.


The firmware relies on external interrupt pins to perform flow sensing, and there are 6 of those available on the mega. So 6 is the practical limit.

Note that Kegbot's design allows you to connect multiple Kegboards to a host computer if you need more taps.
JLPete
It seems like using multiple boards is the way to go. I skip looking at modifing the firmware and go straight to setting up the Kegbot host.

Thanks for the info.
JLPete
mike
[quote=JLPete]Also I have not reviewd the keg board code entirely yet but it appears with a few addtional setup variables, larger arrays and 2 addtional functions I could monitor 8 lines.


The firmware relies on external interrupt pins to perform flow sensing, and there are 6 of those available on the mega. So 6 is the practical limit.

Note that Kegbot's design allows you to connect multiple Kegboards to a host computer if you need more taps.[/quote]

Mike,

I have a two boards. A duemilanove and a mega. I have configured the master.cfg to allow for two kegboard daemons. It appears I may need to modify the kegboard_config.h in the Arduino firmware so that each board connected to the host has a unique name and that name must be 8 characters. Is that correct?

Then in the database I have to update the kegtaps table with correct names something like this:
Duemilanove as name = PRIBoard
PRIBoard.flow0
PRIBoard.flow1

Mega as name = SECBoard
SECBoard.flow0
SECBoard.flow1
SECBoard.flow2
SECBoard.flow3
SECBoard.flow4
SECBoard.flow5
ozinnewy
Hi,
I am just starting out collection the parts for my kegbot.

I have a netbook set up with the core and kegweb running.

I am looking at 2 possibilities for the arduino boards. Which is better the Uno or Mega 2560? I would eventually like to have 3 taps, so will the Mega 2560 be the better choice and will it be compatible with the firmware?

Thanks
JLPete
ozinnewy
Hi,
I am just starting out collection the parts for my kegbot.

I have a netbook set up with the core and kegweb running.

I am looking at 2 possibilities for the arduino boards. Which is better the Uno or Mega 2560? I would eventually like to have 3 taps, so will the Mega 2560 be the better choice and will it be compatible with the firmware?

Thanks


Sparkfun still has just the Mega boards for $50. The Mega 2560 should be compatible with the firmware since the upgrade is really just the processor. The Arduino compiler should catch any issues if there is a problem. They also changed the USB to Serial interface. Not saying it doesn't work but these interfaces can be difficult at times. I would avoid this for a while. I have 6 taps running off the original mega board AT128. To have 3 taps you will need 1 Mega (either version) or 2 Unos. I say go with the original Mega. It will do the job and it saves a couple of bucks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB