I think the PING's backwards too.
<img src=http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1579&stc=1&d=117761982 8>
<br>
I think the PING's backwards too.
<img src=http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1579&stc=1&d=117761982 8>
<br>
DT
i have never had this many problems with my boards... i have fixed everything that was mentioned... i took out that cap, increased the sizes of power and ground traces (and made them go all around the board), and i flipped the "ping" around too..
i dont know how i got that one backwards, it was fine all the other times i designed this...
thanks guys....
another update... im still working on trying to fix the computer in my car. its made by mitsubishi, adn apparently the caps go bad, and need to be changed.
i made a new board, and it all seems good. i think the old PIC is still good too (im not sure though). i tried to flash an LED on RF0, but its not working.
i can program fine, and then i can read the code from the PIC and its all the same. i think im just forgetting something somewhere.. and remember, im still somewhat new to this...
DEFINE OSC 20
define xt_OSC
CMCON = 7
ADCON1 = 7
start:
high portf.0
Pause 1000
low portf.0
pause 1000
GoTo start
End
yeah i already repaired tons of those beauties awhile back, and yes they had Caps failure... but some has Microcontroller failure as well. Maybe you could have a look at the following which explain it to you better than i could
http://www.ecmtogo.com/ECMTips2.htm
And yes, they also have plenty faulty contact/wiring problem too... good old time
-------------------------------------
Your config fuse setting is wrong, i suggest you open the .INC file in the PBP folder to see how they set the default one AND to have a look at the following
http://www.picbasic.co.uk/forum/showthread.php?t=543
Make sure you really disable ALL analog stuff with your current settings AND that you disable the LVP mode in your config fuses.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
thanks mister e, caps are cheap, so its worth a try..
and the config fuses were wrong.. i pretty much knew they were when i posted.. i have got it t flash leds, and to write t my serial lcd. it is also working t the motor driver, but everythign cuts out when the motors get to a certain speed. i think that maybe my batteries might not be able to handle that much drain..
gonnas work on it a bit more tonight after work, and i will post a video of it running on its own when that happens...
Tape a meter up to the top of it and drive around and watch the meter!
Or maybe even make use of one of your analog or comparator ports, kill the motors when the voltage gets too low, use a seperate voltage reference, blink and LED when the volts are good, no blink when volts drop off, etc.etc...(which is why I said add a load of extra vias even if you don't use them, makes it a piece of cake to add this stuff in there)
Batteries - that's what I'm thinking. If I remember right, your motors are driven off a seperate motor driver chip with a mind of it's own and probably doesn't need a full 5v to operate.
ok... so im not sure whats going on now... i think im getting some kind of interference off the motors.. if i move the board about 3" away from the chassis, everyhting works beautifully. then if i put it back near the motors, it cuts off. i havent added caps across the motor leads and case yet, but i may try that tonight..
im not sure, but when the voltage gets low enough, the PIC should reset right? and it appears from my LCD, that everything is just locking up..
it does kinda move though.. i will keep working on it, and let ya all know when i find something...
Bookmarks