I have the EL Sequencer and a 3.3v FTDI breakout. I could successfully push down arduino sketches but couldn't seem to figure out how to control the A-H channels.
So I decided to switch over to a pure C and winAVR approach. I updated my eclipse environment with the AVR plugin, which uses winAVR tools behind the scenes. It was really easy to create a new AVR C application and paste the sparkfun code into a main.c. But I ran into trouble trying to figure out what type of hardware to configure it for(avrdude stuff).
I found an article on ladyada (
http://www.ladyada.net/library/arduino/bootloader.html) and found a configuration that appears to work:
With this, I get a decent output coming back from avrdude:
Code: Select allC:\mystuff\MyProjects\NeonHelloWorld\Debug>avrdude -pm168 -cavrisp -P//./COM31 NeonHelloWorld.elf -Uflash:w:NeonHelloWorld.hex:a -v -b19200 -F
avrdude: Version 5.6, compiled on Mar 5 2009 at 09:59:30
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "C:\WinAVR-20090313\bin\avrdude.conf"
Using Port : //./COM31
Using Programmer : avrisp
Overriding Baud Rate : 19200
AVR Part : ATMEGA168
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 65 5 4 0 no 512 4 0 3600 36
00 0xff 0xff
flash 65 6 128 0 yes 16384 128 128 4500 45
00 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Programmer Type : STK500
Description : Atmel AVR ISP
Hardware Version: 2
Firmware Version: 1.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA168 is 1E 94 06
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "NeonHelloWorld.hex"
avrdude: input file NeonHelloWorld.hex auto detected as Intel Hex
avrdude: writing flash (1584 bytes):
Writing | ################################################## | 100% 1.42s
avrdude: 1584 bytes of flash written
avrdude: verifying flash memory against NeonHelloWorld.hex:
avrdude: load data flash data from input file NeonHelloWorld.hex:
avrdude: input file NeonHelloWorld.hex auto detected as Intel Hex
avrdude: input file NeonHelloWorld.hex contains 1584 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 1.20s
avrdude: verifying ...
avrdude: 1584 bytes of flash verified
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK
avrdude done. Thank you.
C:\mystuff\MyProjects\NeonHelloWorld\Debug>
Note that I have to ignore the device signature (-F) to get it to work. I have not verified that this actually worked - I'm running out of "weekend" but wanted to post my results.
I also noticed that I had to reboot my el sequencer board every time when I was trying different configurations. It flashes the LED rapidly 7 times on boot up, and then it's ready to accept an update.
Now if I can figure out how to make the LED blink, I can verify that the code actually works! (Don't have my neon wire - my son went to band camp today, and took the ac inverter and neon wire with him - we made a "neon man" that he wanted to show off.)
Hope this helps someone else. I've seen a lot of posts about this topic, but with no good concrete results.