This is a small automobile
A couple of things:
1. Part of STEM at middle school level is "How things work". Computers including PIC's are "digital" - 1's and 0's. Each step away from pure machine language hides this basic fact. That physical phenomena like sound and light can be represented by 1's and 0's is my point. What is analog? What is digital? These are not part of this project, but it shows where I am thinking. (What is an echo and how can its response time be characterized in binary. What is hexadecimal?)
My PIC is on a prototype board inside the plastic body of a radio control car. This car body has holes for the two sonars, the six lead connector to which the USB connects, and for screw driver access to the speed controlling potentiometer.
Velocity is of the essence. Speed is the hook. That and the model level RC car's miniaturization of automobile mechanics. Turn over a model level RC car. Get in a grease pit and look up at a modern car.
The 1997 Cadillac Deville has 13 or more computers on board depending on which options in contains. Imagine the 2010 version. I think the 2010 Lexus car can back itself into a parallel parking spot. HOW DO THINGS WORK?
Ken
Maybe StickOS will work. I never heard of it.
scalerobotics wrote:
Quote:
Only problem is you can't (as far as I can tell) do anything else while you are sending a servo a signal.
That's OKAY. Right now all I do is:
Code:
LOW trigright
HIGH trigright
HIGH trigright
HIGH trigright
LOW trigright
PULSIN echoright,1,rangeright 'measures the range in 10uS steps
PAUSE 10 'Wait for ringing to stop - read SF05 spec.
This seems to work flawlessly.
Ken
This may be a whole new ball game.....
My cars use the same solderless protoboard as CPUstick uses here:
http://dev.emcelettronica.com/files/..._m16d2111d.jpg
On the tail end I have velcro'd the RC radio receiver. There is plenty of room inside the car's outer body to add a horizontal zigflea if I can rig the connection as 0.1" centers.
I do not understand the above package. How about I start with this from EMCelectronica? It looks like it will plug into my protoboard and not give me stuff I do not need. At ~50EUR it is not inexpensive. Do you think I could put the thing together myself as I have done with the 16F887?
http://store.emcelettronica.com/imag...ck_stickos.JPG
Ken
Are those output holes on 0.1" centers?
Thanks for the tip. The board looks OKAY, but only if I can solder pins into those holes and plug the thing into a solderless proto board. Of course some of the pins across the bottom would not have matching holes.
Oh, I see. The picture of the red board in your "http://www.sparkfun.com/commerce/pro...oducts_id=8971" is the same as the picture of the green board in my previous posting. True? Do you think? The price there is OKAY if shipping is reasonable.
Ken
I'll buy two USB 32-Bit Whacker - PIC32MX460
What else do I need? I am confused but very impressed by the young man in the video. I'll get the ZIGflea later.
Ken
Sounds good. A portable spotlight
That seems the best so far. I have some light sensors.
The teacher has an open 150watt incandescent bulb and an extension cord. Hmmmm....
Try again,
The teacher has a portable roadside emergency light. He or she runs around the gym, the toy cars follow. Maybe the gym lights need to be dimmed.
The fact that TOY cars have bang-bang controls ought not to inhibit the PIC control code.
I like it. Why won't it work?
Ken