Hello again, we have been away from here for some time as we tried to make sense of previous directions. Your information led to us working with the wiring, which we discovered may have caused our unit to fry (through no direct fault of our own, as we had to share the unit with another period in the same class). Unfortunately we are all very new to this particular set of equipment and several of us working on it directly are honestly not experts when it comes to the electrical wiring.
http://i163.photobucket.com/albums/t292/Dankscarver/IMG_0026-1.jpg
We have tried rewiring the sonar/bot board in an attempt to ratify the issues we found. We have reason to believe however, that the sonar unit is in fact dead. Now what I’m worried about is finding some form of proof to its inoperability. A much more pleasant solution would be proof otherwise however. In either case we would like some more help.
http://i163.photobucket.com/albums/t292/Dankscarver/BotBoardPic-1.jpg
The other division’s design was set-up with all of the wire clips on the top pin of the board, with the pins closest to the user. We believe this could have led to them putting voltage into all of the sonar pins at once, with no designated ground. Now unless I’m completely incorrect, that could have destroyed it.
On the other hand, possible screw-ups on our end include not being able to store the Time(1-3) variables correctly. I have tried the various variable types in the ATOM manual on the off-chance that the problem was the stored value being rounded off to an effective zero.
While this should not have been a difficult project we are still having plenty of difficulty, we were, until recently, sharing the unit with another division among other things. The pictures provided show our current wiring. Red leads to the Ping’s 5v pin, black to GND and green to SIG. This set-up appeared to provide it with proper power, as the LED that according to the Ping manual “indicates sensor activity came on. Does this mean that it’s firing its pulse? Or receiving the echo perhaps?
CmConver CON 2260
cmDistance VAR WORD
time VAR WORD
MAIN
PULSOUT 4, 8
PULSIN 4, 1, time
cmDistance = CmConver ** time
DEBUG [dec cmDistance]
PAUSE 1000
return
The program above is currently set to take P4’s pulsout and pulsin to get the variable Time, which is multiplied by our constant. The debug runs a stream of zeroes at me currently. As you can see tise variables are multiplied by the constant (Which I believe is simply a value given by the code that was the basis for this) for the product variables which are then printed via debug. We have also tried running the original code this was based on, it had not worked any better.