Hi guys, here is a very useful tutorial on how to hack your toy car and modified with your requirements.
I had a toy car which works on remote control. It was running on four pen batteries of 1.5V in the receiver circuit and RC transmitting remote had a 9V double battery. It could move forward and backward. I found it wonderful to use it as a remote for house equipments.There was a requirement of lighting the lights . It was difficult to search for the switch in the darkness.So the idea hit up on me.I connected the receiver section of the toy car to a bttery of 9V also 7805 for 5v output. The connections of the receiver to the DC motor were un-soldered and connected it to two 6Vrelays.12V relay will not work.Relays are connected through diodes. This arrangement helps to drive the two relays. Thus when the forward button is pressed in the remote first relay gets activated.Similarly when reverse button is pressed,second relay gets activated. Thus you can control two equipments at your house wireless using a cheap toy car remote system.
The car i bought cost me aroun 100Rs. Also you can think of different use using the same.
Soon i will upload the detail circuit diagram and a video of what i had done.
Sorry for late update.... i am unable to upload so from the corner of internet....
I had a toy car which works on remote control. It was running on four pen batteries of 1.5V in the receiver circuit and RC transmitting remote had a 9V double battery. It could move forward and backward. I found it wonderful to use it as a remote for house equipments.There was a requirement of lighting the lights . It was difficult to search for the switch in the darkness.So the idea hit up on me.I connected the receiver section of the toy car to a bttery of 9V also 7805 for 5v output. The connections of the receiver to the DC motor were un-soldered and connected it to two 6Vrelays.12V relay will not work.Relays are connected through diodes. This arrangement helps to drive the two relays. Thus when the forward button is pressed in the remote first relay gets activated.Similarly when reverse button is pressed,second relay gets activated. Thus you can control two equipments at your house wireless using a cheap toy car remote system.
The car i bought cost me aroun 100Rs. Also you can think of different use using the same.
Soon i will upload the detail circuit diagram and a video of what i had done.
Sorry for late update.... i am unable to upload so from the corner of internet....
Hack a toy car to make a cheap wireless robot? Yes, cheap toy remote cars form china can be scavenged to get their remotes to work with our robots. All of us have seen and played with toy cars some time in the past. Some -like me- might have bought them to get the magnets inside those DC motors. I don’t know why those C shaped magnets caught my attention more than the car.
I have to admit even after growing older, I could not resist the urge to open a brand new toy remote car that my little brother had just broken (he broke the axle connecting the rear wheel and it was beyond repair). It was one of those cheap china products so no big deal. What I was interested in was the remote control. Here is an image of the remote and its receiver board which apparently was the H-bridge too!
Even the cheapest RF ASK modules cost around $7 and this entire car was price at around $10. Let’s say we just want the remote. Even then we can never make such a good looking enclosure for the transmitter in case of the RF module. This is the receiver cum motor driver circuit. I had seen all the wires and where they went so I didn’t have any trouble identifying them. But you could see the silkscreen and identify the wires.
The next thing I did was to desolder those wires and add some custom wiring that could be plugged into my development board without looking messy. I soldered a 2 wire RMC connector to the power connectors so that I won’t mix up the positive and negative leads. Then I added a bus wire to take out the motor terminals and connected a female berg strip to its other end.
The RMC connector that I had soldered on the power terminals was actually a bad idea. My development board did not have a suitable connector to receive the connector. I could have desoldered it and attached a berg jumper, but my iron takes its own sweet time to heat up. Besides I needed those connectors when I moved the board into the robot where it is going to stay for sometime before I get tired of it. So this was the most optimal solution that I could think of, the white casing around the RMC connector had to go, good old tricks sometimes saves a lot of trouble.
The idea is that, the four pins that came out of the board was to serve as inputs for the Microcontroller or directly be given to a motor driver IC like L293 or L298 depending on the size of the the motor your robot has.
For doing either of the above, we need to have a table of how the board would behave for various types of input. To figure this out I had to connect LEDs to the output of the receiver. My PIC development board, conveniently had 4 LEDs with a 4 pin male berg strip (trust me its pure coincidence :-)) all I had to do was to plug it in to see the output. You can also see the power cables connected to the power terminals of the board.
The next part was really simple, just send some signal form the remote to note down the LED patterns. When the LED turns on the corresponding bit has a logic HIGH. As soon as I was the first pattern the remaining were quiet obvious. Here is what I observed.
| Front | 0001 |
| Back | 0010 |
| Left | 0100 |
| Right | 1000 |
I wanted to implement this setup in balckboy. All I had to do was remove some module (line sensors and comparators where not needed) form the robot and add this receiver and connect the inputs to PORT B.
Since the Blackboy already has a motor driver and a PIC microcontroller in it, I had to write a small program to get these values as inputs and move the robot accordingly instead of the much simpler alternative.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* File Name: remote_car
* Author: Siddharth Chandrasekaran
* Created on July 7, 2013, 9:03 PM
* Hack a Toy Car to Make a Cheap Wireless Robot
* Visit http://embedjournal.com for more codes.
*/
#include"p18f4520.h"
#define FRONT 0x06
#define BACK 0x09
#define LEFT 0x05
#define RIGHT 0x0A
#define STOP 0x00
#pragma config WDT=OFF,OSC=HS, LVP=OFF, IESO=OFF, FCMEN=ON, XINST=OFF
void main()
{
ADCON1 = 0x0f;
TRISC = 0x00;
TRISB = 0x0F;
while(1){
if(PORTBbits.RB0 == 1)
LATC = FRONT;
else
if(PORTBbits.RB1 == 1)
LATC = BACK;
else
if(PORTBbits.RB2 == 1)
LATC = LEFT;
else
if(PORTBbits.RB3 == 1)
LATC = RIGHT;
else
LATC = STOP;
}
}
|
Thats all folks!
You can comments and ask for question....even I can mail u my files or even post you the above.........
Roboticsforall, I'm glad that you took the time to update this post with content from embedjournal. I appreciate that you want to give value to your readers but the purpose would better served if you could give a link to the post instead of rehashing the content here.
ReplyDeleteAlso, could you explain how you managed to latch the relay ON/OFF without any extra circuitry? As far as I have seen, the remote cars have momentary switches to drive the car.
Cheers!
I am glad you point out that I update the post from embeddedjournal. But if you look carefully throughout post you can see that I have many links that sends backward to the original author. I am taking the credit. I found this post useful so want to create as many backlinks as possible to the original post.
DeleteAbout your question on latching the relay On/OFF. This post is for remote control of the toy car not the relay switches which drives the motor. You can use the remote control for any of your project.
And if you want to latch the relay in ON/OFF position you can use 555 timer circuit . (A very simple one to embed)
If you have any doubts you can ask.
Cheers!
Hey me again. The article has changed its url slightly. You might have to update your links.
DeletePs. I think I missed mentioning in the last comment. I am the original author of the post and I do know what a latching relays are. The question was about doing it without extra circuitry.
Cheers.
Find the latest used and new cars for sale.
ReplyDeleteGreat used car deals and prices.