Pages: 1 2 [3] 4   Go Down
Author Topic: IR Battle Tanks  (Read 11733 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
God Member
*****
Karma: 12
Posts: 508
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, Paulware!!

I have used https://github.com/shirriff/Arduino-IRremote and using dump sample I got pulses codes from my green tank (arduino can receive shots now).

My problema was know the pulses that green tank recognizes as barrel and machine-gun (from the yellow tank, that I not have). Thanks to you I have the barrel and I will be very happy if you can hack (dump) machine-gun pulses from your 27MHz yellow tank.

I'm not using an arduino bluetooth shield, I'm using a module, this one http://dx.com/p/jy-mcu-arduino-bluetooth-wireless-serial-port-module-104299.

I use this module to PC connection as a simple serial connection, to control  the tank using keyboard or my ps3 controller connected to PC. I'm on work now, but I use codes similar to this: http://www.instructables.com/id/how-to-Control-arduino-by-bluetooth-from-PC-pock/?ALLSTEPS

I'm following the most easy way smiley-wink
Logged

0
Offline Offline
Full Member
***
Karma: 3
Posts: 119
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,
   Sorry I haven't replied for awhile.  I can't find my old version of code that had the machine gun pulse so I will have to resurrect my little lab to sample the pulse. 
   I just saw something today that explained why I was getting (relatively) crappy range on my IR firing.  I had the IR LED directly connected to the DIY arduino so that it was limited to Arduino power (20 mA).   I should've using a transistor and ground/power to amplify the pulse like this example: http://www.instructables.com/id/Duino-Tagger/step4/Transmitter/
   
   Also I saw this cool flamethrower pumpkin http://www.instructables.com/id/Flamethrowing-Jack-O-Lantern/and I think it would make an awesome addition to the battlefield.  But instead of a pumpkin we will put it inside a plastic building!

  What do you think?
Logged

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 29
Posts: 1071
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

But instead of a pumpkin we will put it inside a plastic building!  What do you think?
Oh my. I think your insurance premium just went up.
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

0
Offline Offline
Full Member
***
Karma: 3
Posts: 119
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Flame affect mockup of building or vehicle should probably be placed outside, surrounded by non-flammable rocks.  Even better: Make a fenced off arena which has these kind of affects and don't let the patrons inside the arena.  Sounds like a great kickstarter idea.  Kids would love it.  What boy doesn't like fire. yeah he he yea yea burn
Logged

Offline Offline
God Member
*****
Karma: 12
Posts: 508
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi buddy!

Do not worry! My job stole all my time in last months and I could not play with my arduino. I hope I return to the scene in a few weeks.

I tried to find in my country the Yellow tank, but is hard to get here (for a just price). I will purchase from ebay/China probably.

About IR Transmitter, 20mA is really low (I was doing the same thing as you ^^) But 300mA sounds so much (for short intervals between pulses).
 
Fire is nice!!! But strykeroz is right... lol
Logged

0
Offline Offline
Full Member
***
Karma: 3
Posts: 119
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just saw this chasis.   I've been waiting for a cheap base I think this could be used for a basic frame $12.  http://www.hobbyking.com/hobbyking/store/__26250__4WD_Robot_Chassis_KIT_.html what do you think?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24353
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I just saw this chasis.   I've been waiting for a cheap base I think this could be used for a basic frame $12. 
Leave your browser open on that page for a couple of minutes, and they'll offer you a discount  smiley
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
God Member
*****
Karma: 12
Posts: 508
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sounds nice and cheap... I need to see how much will be the shipment to Brazil  smiley-confuse

The robotic things are expensive here smiley-cry
Logged

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 29
Posts: 1071
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That looks very cheap compared to other platforms.  Looking forward to your review, then might pony up for a couple.
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

0
Offline Offline
Full Member
***
Karma: 3
Posts: 119
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Darn, shipping is outrageous, will have to wait until they stock this item in their US store.
I did however find this: http://www.ebay.com/itm/160840372337?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649 which is basically the same motor plus a wheel for $4 with free shipping.  
  I think this would make a nice robo/battlefield base.

  I started a github repository located https://github.com/Paulware/IRBattleField/
  It contains a schematic for the receiver that uses an nrf24l01 and has a place for an hbridge to control 2 wheels.
  I'm going to order the pcb from iteadstudio so it will be a few weeks before I know whether it is correct.

« Last Edit: February 13, 2013, 09:40:37 pm by Paulware » Logged

0
Offline Offline
Full Member
***
Karma: 3
Posts: 119
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm thinking that a wiimote could be a good tank controller.  With some help from a friend I was able to read the wiimote using a raspberry pi and a cheap Bluetooth adapter.  I updated the github with the sketch entitled PiMoteCheck.ino in the sketches directory.

  The SD card, Bluetooth adapter and DIY Arduino I used can be had on Tindie: https://www.tindie.com/shops/Paulware/read-wiimote-with-raspberry-pi-and-diy-arduino/

  The next step will be to add an RF component, but I figured if others wanted to use their own rf, this might be a good point to capture.

« Last Edit: March 13, 2013, 10:10:46 pm by Paulware » Logged

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 29
Posts: 1071
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Paul

Nothing I have here is large enough to hide the RPi with DIY Arduino inside - have you tried to get them physically inside one of your iR tanks?  And was there a reason you needed the extra horsepower of the RPi rather than doing it all within the Arduino code?

Geoff
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

0
Offline Offline
Full Member
***
Karma: 3
Posts: 119
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

  Although you could possibly fit a raspberry pi inside a scale 1/16th tank I don't recommend it.
Remember, the raspberry pi is used for the controller.  The controller will be connected to the transmitter.
In the tank itself you will place the receiver, and yes I've made very small receivers with diy Arduinos that fit in smaller than 1/16 tanks.

  But back to the horsepower question.  This was the easiest/quickest way for me to read wiimote/Bluetooth.  I saw a link to a usb host shield solution, and I also have a Bluetooth shield that I would like to try.  But I haven't had success yet.
Logged

Brisbane, Australia
Offline Offline
Edison Member
*
Karma: 29
Posts: 1071
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Gotcha.

I've not got a bluetooth shield, but have used the bluetooth bees and seen the cheap bluetooth modules used too.  Very straightforward, just send them commands much like the old-school AT modem controls.
Logged

"There is no problem so bad you can't make it worse"
- retired astronaut Chris Hadfield

Offline Offline
God Member
*****
Karma: 12
Posts: 508
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

cool to see arduino controlled by wiimote! Nice work!

I'm waiting the components to mount a minimal arduino and I can put inside my tanks (arduino mega is so big smiley)

When I have some time I'll post some pics and infos sbout my tank.
Logged

Pages: 1 2 [3] 4   Go Up
Jump to: