Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free > Open ReVolt: open source DC motor controller
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 09-25-2012, 08:18 PM   #1 (permalink)
EcoModding Lurker
 
Join Date: Dec 2011
Location: Poland
Posts: 66
Thanks: 12
Thanked 26 Times in 21 Posts
ATMega168 programming and serial comm problems

A few moths ago I built control board (rev. 2C) and tested it with small power section and radiator fan motor - worked OK, so did RTD Explorer, too. Today I took the board after few months storage, hooked the power again - it worked fine but due to lack of cable I didn't check rtd.

I have IGBT power section ready so I uploaded \hexfiles-168\coug-unified-8k.hex using AVRStudio and STK500 clone. Controller works as it should but I get no data stream at processor pins - both TXD and RXD are continuously pulled high (checked with scope, HIN202CP transmitter chip is removed to eliminate one potential problem source).

Checked fusebits (0xF8, 0xDC, 0xF7) then pointed to hex file, clicked "Program" button - board starts immediately, i got steady leds, got 8kHz PWM signal reacting on throttle but without RTD I feel like blind

Knowing myself I probably overlooked something simple and stupid, can you give me some advise?

Mike


Last edited by z_power; 09-25-2012 at 08:20 PM.. Reason: added .hex filename
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 09-26-2012, 06:08 PM   #2 (permalink)
EcoModding Lurker
 
Join Date: Dec 2011
Location: Poland
Posts: 66
Thanks: 12
Thanked 26 Times in 21 Posts
OK, after crawling trough code I see that processor doesn't blindly spit data but rather responds on requests, therefore no activity on TxD except "initiial greetings".
Hooked cable today and got rtd working at first attempt

  Reply With Quote
The Following User Says Thank You to z_power For This Useful Post:
MPaulHolmes (10-18-2012)
Reply  Post New Thread


Thread Tools




Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com