well done mate i was wondrin if you could help me a little with the ardunio i making a similar thing but with a rc plane with of course a arial atachment for thr bluetooth
Don't remember - probably the same website I got the bluesmirf BT chip. You buy them in a row, split them up, and solder them on. Search for 'break away headers'.
For example: adafruit.com/products/400 or sparkfun.com/products/116
@Menimitz You asked about sending commands continuously, rather than via the terminal that comes with the software.
As you've probably figured out, while the Arduino development software does allow you to send commands by typing into the terminal, you can also open the Serial port using other software, and so write to it much more quickly.
I was actually using some python code to send commands over a bluetooth serial interface.
The python read the PS2 controller, and wrote to serial port.
@fergalreid I finally found I had serial terminal software this entire time. I have been using PuTTY for SSH but never knew it would work for this as well. The problem I had been having with my Bluetooth before that was BAUD rate problems. The documentation said it was one thing, but turns out it was actually using another.
@djmohnl Very simply - I just connected one wire from the laser to ground, and the other laser wire to one of the arduino digital out pins (pin2). I then wrote pin2 HIGH to turn on the laser, and LOW to turn it off.
Maybe I should have used resistor and capacitor to smooth the input to the laser - but the arduino seems to be providing well behaved power, and the cheap laser seems robust in practice.
Just building the car for fun, I had no trouble with it.
@fergalreid hey can you please do a more in depth tutorial of how you wired the ps2 controller to the computer, and how to use an arduino to control the car? thx
@FutebolFanatico001 I can't go through it in full detail - it'd take weeks to write everything out - but I can try answer specific questions.
For physically connecting the PS2 controller to the PC, I used a piece of commonly available hardware - there are loads of PS2->USB converters out there (try ebay), very cheap.
It then took a few minutes work to get the Pygame software library to interface with that controller.
I've tried to give an overview of how the whole process works in the video here, and the description - if you have specific questions, I'll answer them, but it'd take me ages to try and explain the whole process in detail - maybe I'll get around to making a tutorial in future, but no promises - there's great info out there on this sort of thing, online, though.
well done mate i was wondrin if you could help me a little with the ardunio i making a similar thing but with a rc plane with of course a arial atachment for thr bluetooth
pleas ereply
crapbag1997 1 month ago
Very good!!
cosmonaves 3 months ago
where did you get the pins ???? i need to buy some for my bluesmirf
cnks1 5 months ago
@cnks1
Don't remember - probably the same website I got the bluesmirf BT chip. You buy them in a row, split them up, and solder them on. Search for 'break away headers'.
For example: adafruit.com/products/400 or sparkfun.com/products/116
fergalreid 5 months ago
that,s fantastic your pritty smart . my buddy got a fearrow the engin gets so hot
the electrical components are getting brittal . so i was thinking
blooth electronical components
pattric7 8 months ago
Comment removed
MECATRONICGUY 10 months ago
Comment removed
Menimitz 1 year ago
@Menimitz You asked about sending commands continuously, rather than via the terminal that comes with the software.
As you've probably figured out, while the Arduino development software does allow you to send commands by typing into the terminal, you can also open the Serial port using other software, and so write to it much more quickly.
I was actually using some python code to send commands over a bluetooth serial interface.
The python read the PS2 controller, and wrote to serial port.
fergalreid 1 year ago
@fergalreid I finally found I had serial terminal software this entire time. I have been using PuTTY for SSH but never knew it would work for this as well. The problem I had been having with my Bluetooth before that was BAUD rate problems. The documentation said it was one thing, but turns out it was actually using another.
Menimitz 1 year ago
how did you wired the laser ?
djmohnl 1 year ago
@djmohnl Very simply - I just connected one wire from the laser to ground, and the other laser wire to one of the arduino digital out pins (pin2). I then wrote pin2 HIGH to turn on the laser, and LOW to turn it off.
Maybe I should have used resistor and capacitor to smooth the input to the laser - but the arduino seems to be providing well behaved power, and the cheap laser seems robust in practice.
Just building the car for fun, I had no trouble with it.
fergalreid 1 year ago
Comment removed
MECATRONICGUY 10 months ago
@fergalreid hey can you please do a more in depth tutorial of how you wired the ps2 controller to the computer, and how to use an arduino to control the car? thx
FutebolFanatico001 6 months ago
@FutebolFanatico001 I can't go through it in full detail - it'd take weeks to write everything out - but I can try answer specific questions.
For physically connecting the PS2 controller to the PC, I used a piece of commonly available hardware - there are loads of PS2->USB converters out there (try ebay), very cheap.
It then took a few minutes work to get the Pygame software library to interface with that controller.
fergalreid 6 months ago
@FutebolFanatico001 Using the Arduino to control the car is more involved.
I've tried to give an overview of how the whole process works in the video here, and the description - if you have specific questions, I'll answer them, but it'd take me ages to try and explain the whole process in detail - maybe I'll get around to making a tutorial in future, but no promises - there's great info out there on this sort of thing, online, though.
fergalreid 6 months ago