Go Down

Topic: Tincantools atmega328 trainer board (Read 930 times) previous topic - next topic

sspence65

Is there anyway to talk to the tincantools atmega328 trainer board (beagle board linux backpack) from the Arduino IDE? Currently I have to use command line tools to upload sketches, and it would be nice to use the IDE. Is the IDE extensible for new boards?

http://tincantools.com/home.php?cat=255
Steve Spence - KK4HFJ

johnwasser

It says the 328P comes with the Arduino bootloader so you can talk to it like an Arduino.  You will need a USB-to-TTLSerial cable.  Then you can hook it to JP5 pins 2 (TX) and 4 (RX) and disconnect those from pins 1 and 3 (RS232 level shifter: TXS0102).  TP23 is AVR VCC (+5) and TP42 is AVR_nRESET.  You will need a 100pF capacitor from the DTR line of the serial cable to the AVR_nRESET line to get auto-reset.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

nickgammon

Circuit here (shows which pins you need for programming via bootloader):

http://gammon.com.au/forum/?id=11109

Then get an FTDI cable, such as this one ($20):

https://www.adafruit.com/products/70

Then you just plug the cable into the 6-pin header and program away!
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

sspence65

#3
Jan 15, 2012, 10:30 am Last Edit: Jan 15, 2012, 11:00 am by Steve Spence Reason: 1
Since the trainer board is already connected to the beagle board though a uart, why do I need ftdi or usb? currently I can create sketches in the IDE, but to upload, I have to use the command line:

   sudo avrdude -V -F -c avrisp2 -p m328p -P usb -U flash:w:main.hex

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1230797256 talks about adding new boards to the IDE, but I don't know the parameters of the trainer board.

Steve Spence - KK4HFJ

johnwasser


Since the trainer board is already connected to the beagle board though a uart, why do I need ftdi or usb? currently I can create sketches in the IDE, but to upload, I have to use the command line:

   sudo avrdude -V -F -c avrisp2 -p m328p -P usb -U flash:w:main.hex

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1230797256 talks about adding new boards to the IDE, but I don't know the parameters of the trainer board.


Oh, you're running the IDE on the BeagleBoard.  That wasn't clear. 

Under Tools->Serial port you should select the serial port connected to UART2 on the Trainer.  Under Tools-Boards you need to find an 8MHz 328P. "LilyPad Arduino w/ ATmega328" or "Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328" will probably work.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Go Up