|
Hi all, I just got an Arduino Mega 2560 R3 board and got it working in Windows XP (software and drivers loaded, COM3, 57600 bps in windows device manager). LED blink example program uploads to the board and works fine. HOWEVER, I cannot upload the micromanager AOTFcontroller.pde firmware to the board as it complains about pieces of the code that are apparently not compatible with version 1.0. I attempted to edit the firmware (e.g. Serial.print(X, BYTE) to Serial.write(X), etc.), but I still get errors that I haven't gotten to the bottom of yet. Before putting more time into this, is there already a newer firmware version available somewhere, or has anyone else already edited this so that it works?
I tried loading the board via the MM hardware config wizard anyway (COM3, 57600 bps), but from step 4 to 5 I get the error "Arduio-Hub: Serial command failed..." Am I correct in presuming that this is because the MM firmware is needed for MM to communicate with the board? Cheers, Marcel -- Marcel Goldschen-Ohm, PhD Postdoctoral fellow, Chanda laboratory ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ micro-manager-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/micro-manager-general |
|
Administrator
|
Hi Marcel,
> Hi all, I just got an Arduino Mega 2560 R3 board and got it working in Windows XP (software and drivers loaded, COM3, 57600 bps in windows device manager). LED blink example program uploads to the board and works fine. HOWEVER, I cannot upload the micromanager AOTFcontroller.pde firmware to the board as it complains about pieces of the code that are apparently not compatible with version 1.0. I attempted to edit the firmware (e.g. Serial.print(X, BYTE) to Serial.write(X), etc.), but I still get errors that I haven't gotten to the bottom of yet. Before putting more time into this, is there already a newer firmware version available somewhere, or has anyone else already edited this so that it works? I haven't. You could download and install a previous version of the Arduino IDE. It should compile and install the firmware (hopefully it works with your board). > I tried loading the board via the MM hardware config wizard anyway (COM3, 57600 bps), but from step 4 to 5 I get the error "Arduio-Hub: Serial command failed..." Am I correct in presuming that this is because the MM firmware is needed for MM to communicate with the board? Correct. Best, Nico ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ micro-manager-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/micro-manager-general |
|
Thanks, Nico, a previous version of the Arduino IDE allowed me to upload the AOTFcontroller.pde firmware to my board and add the Arduino-Hub and select the switch and shutter via the MM hardware config wizard. However, I don't seem to be able to actually control the TTL outputs via the MM Property Browser. I tried setting the switch state to 32 (for pin 13, which has a LED light on it on my board) and opening the shutter, but I don't see the LED light on my board turn on. Also, with a multimeter I do not detect a TTL voltage for pins 8-13 when those are selected with the switch (I think I'm using the correct states: pin 8 = state 1, pin 9 = state 2, pin 10 = state 4, etc., and the arduino-shutter is open). Perhaps I'm not understanding something regarding how to use the device?
Cheers, Marcel On Fri, Jan 27, 2012 at 3:25 PM, Nico Stuurman <[hidden email]> wrote: Hi Marcel, -- Marcel Goldschen-Ohm, PhD Postdoctoral fellow, Chanda laboratory ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ micro-manager-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/micro-manager-general |
|
Administrator
|
Hi Marcel,
> Thanks, Nico, a previous version of the Arduino IDE allowed me to upload the AOTFcontroller.pde firmware to my board and add the Arduino-Hub and select the switch and shutter via the MM hardware config wizard. However, I don't seem to be able to actually control the TTL outputs via the MM Property Browser. I tried setting the switch state to 32 (for pin 13, which has a LED light on it on my board) and opening the shutter, but I don't see the LED light on my board turn on. Also, with a multimeter I do not detect a TTL voltage for pins 8-13 when those are selected with the switch (I think I'm using the correct states: pin 8 = state 1, pin 9 = state 2, pin 10 = state 4, etc., and the arduino-shutter is open). Perhaps I'm not understanding something regarding how to use the device? Is this with the Arduino Mega2560? The firmware that you loaded manipulates the output pins directly (i.e., it writes to PORTB) rather than going through the Arduino functions to set individual pins. Looking at the pinmapping at: http://arduino.cc/en/Hacking/PinMapping2560 it looks like pin13 on your Arduino is mapped to PB7. Thus, you should set the switch state to 128 to get that pin to go high. Pins you can use: pin 53 - PB0 - 1 pin 52 - PB1 - 2 pin 51 - PB2 - 4 pin 50 - PB3 - 8 pin 10 - PB4 - 16 pin 11 - PB5 - 32 pin 12 - PB6 - 64 pin 13 - PB7 - 128 It is possible that there are other issues with the firmware (for instance, does it limit the "state" you can set to 65?), since it was written for the simpler version of the Arduino. Best, Nico > > Cheers, > Marcel > > On Fri, Jan 27, 2012 at 3:25 PM, Nico Stuurman <[hidden email]> wrote: > Hi Marcel, > > > > Hi all, I just got an Arduino Mega 2560 R3 board and got it working in Windows XP (software and drivers loaded, COM3, 57600 bps in windows device manager). LED blink example program uploads to the board and works fine. HOWEVER, I cannot upload the micromanager AOTFcontroller.pde firmware to the board as it complains about pieces of the code that are apparently not compatible with version 1.0. I attempted to edit the firmware (e.g. Serial.print(X, BYTE) to Serial.write(X), etc.), but I still get errors that I haven't gotten to the bottom of yet. Before putting more time into this, is there already a newer firmware version available somewhere, or has anyone else already edited this so that it works? > > I haven't. You could download and install a previous version of the Arduino IDE. It should compile and install the firmware (hopefully it works with your board). > > > I tried loading the board via the MM hardware config wizard anyway (COM3, 57600 bps), but from step 4 to 5 I get the error "Arduio-Hub: Serial command failed..." Am I correct in presuming that this is because the MM firmware is needed for MM to communicate with the board? > > Correct. > > Best, > > Nico > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > micro-manager-general mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/micro-manager-general > > > > -- > Marcel Goldschen-Ohm, PhD > Postdoctoral fellow, Chanda laboratory > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2_______________________________________________ > micro-manager-general mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/micro-manager-general ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ micro-manager-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/micro-manager-general |
|
Awesome, the correct pins did the trick ;) Oh, and yes, I can only set states 0-63 with the current firmware, so I can't see the LED on pin13 (state 128), but the voltmeter confirms I can now output TTLs on pins 50-53. Thanks again Nico.
Cheers, Marcel On Mon, Jan 30, 2012 at 11:06 PM, Nico Stuurman <[hidden email]> wrote: Hi Marcel, -- Marcel Goldschen-Ohm, PhD Postdoctoral fellow, Chanda laboratory ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ micro-manager-general mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/micro-manager-general |
| Powered by Nabble | See how NAML generates this page |
