Reprogramming Brain Machine(ATTINY25 version) with Arduino

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Reprogramming Brain Machine(ATTINY25 version) with Arduino

Postby dcrisley » Wed May 02, 2012 2:42 am

Hi, folks, newbie here.
I'm trying to modify the program on the BRAIN MACHINE using the Arduino Duemilanove atmega328 as the ISP using my Mac OS X 10.5.8 and the latest Arduino environment, 1.0.
The Brain machine kit now uses the ATTiny25 and Mitch has the program just for the ATTiny25 available on github:
https://github.com/adafruit/Brain-Machi ... mware/bm.c
To use the Arduino as an ISP, I started with the hi lo tech tutorial: http://hlt.media.banned.edu/?p=1695
Of course, the blink sketch didn't work, lots of errors, etc. but, like we've all done, much questing and searching through forums, changing lines of code in pages, downloading secret custom core files, using a capacitor to disable the reset, ditching everything and starting over finally bore fruit: a blinking light.
The main thing I had to do was find core files specifically for the ATTiny25 which I found and it works. I get errors at the end of compiling but the light blinks in spite of them.

Now the nitty gritty: When I paste Mitch's Brain Machine program into a sketch and hit VERIFY it compiles with no errors. When I hit UPLOAD, you guessed it, tons of errors, BUT it completes the upload just like with the BLINK sketch. So I figured maybe it'll work anyway so I replaced the chip in the kit with my chip and it just blinks in the monotone error sequence: on off on off...

So I'm just wondering if anyone out there has tackled this very problem and it would be great to hear about their experiences!
If anyone has advise to offer please remember I know virtually nothing about writing code. I'm just doing what others suggest word for word.
dcrisley
 
Posts: 3
Joined: Mon Apr 30, 2012 8:23 pm

Re: Reprogramming Brain Machine(ATTINY25 version) with Arduino

Postby mtbf0 » Mon May 14, 2012 7:52 am

i would guess you've got a conflict over timer0 which the arduino, (and, presumably, a tiny85 when programmed using arduino), uses for keeping time and the brain machine uses to generate the base frequency. since you have a working arduino environment, you've got everything you need, (avr-gcc, make, avrdude, etc), to program the tiny85 without arduino.

what i can't tell you is how to get avrdude to work with an arduino as an isp. the information must be out there, but i have to go to work.
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1642
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca


Return to Microcontrollers

Who is online

Users browsing this forum: No registered users and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]