0
Offline
Full Member
Karma: 2
Posts: 117
Arduino rocks
|
 |
« Reply #15 on: April 04, 2012, 04:13:56 pm » |
Created a video showing the tank created in the previous post. I also created some IR towers that use an ultrasonic range finder to detect enemy vehicles.
|
|
|
|
« Last Edit: April 08, 2012, 09:21:54 pm by Paulware »
|
Logged
|
|
|
|
|
Brisbane, Australia
Offline
God Member
Karma: 17
Posts: 845
|
 |
« Reply #16 on: April 04, 2012, 04:17:20 pm » |
That's awesome stuff. Is there a way for the towers to identify friend-or-foe or do they target any nearby target ?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 2
Posts: 117
Arduino rocks
|
 |
« Reply #17 on: April 04, 2012, 04:29:12 pm » |
That's a good point. Currently the ultrasonic sensor only detects distance rather than type, a tank could be killed by friendly fire.
IR pulses are unique and could be rejected, if the tank detected a "friendly" IR shot.
For example HuanQi pulses are different from Forces of Valor pulses which are different from Battle Machine pulses.
Currently my "hacked" tanks output all the pulses and accept all the pulses as hits.
I was thinking that I might add RF receiver to the tower to turn them "off" when I wanted to pass.
Alternately I could add an IR receiver to them and use an IR remote to turn them on/off. This is probably the cheapest method.
What do you think?
|
|
|
|
|
Logged
|
|
|
|
|
Brisbane, Australia
Offline
God Member
Karma: 17
Posts: 845
|
 |
« Reply #18 on: April 05, 2012, 12:40:12 am » |
I presume these turrets are not going to be immortal in the final design? If so, another option (not as straightforward perhaps?) is to have your turrets use their iR sensor that's used for recording hits to decode an iR beacon LED on each tank which broadcasts a friend/foe or team iD?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 2
Posts: 117
Arduino rocks
|
 |
« Reply #19 on: April 08, 2012, 09:20:39 pm » |
To add an element of strategy, I used the repair robots to enable/disable the tower. Previously the repair pulse only fixed vehicles, but now the tower will respond to a repair pulse by stopping its scan and firing. Another possible future option would be for a repair robot to repair a disabled enemy unit and "claim" it for the friendly side. Note: I hacked up this rumble robot pretty bad. The problem ended up being old AA batteries. It needed fresh ones. The way their motors are geared, they don't behave well with marginal batteries. I ended up adding a TIP120 (NPN transistor) to the arm movement because I couldn't find the pin that controlled them. If anyone knows where this pin is located, please send me a .jpg...thanks. Most people place their rumble robot controller in the head, but this requires that the arm motors be removed. I kind of liked the arm motion, so I had to place my controller on the outside of the robot...Not very pretty, but the arm motion is cute for simulating the repairing of the vehicle.
|
|
|
|
« Last Edit: April 08, 2012, 10:12:13 pm by Paulware »
|
Logged
|
|
|
|
|
|
|
0
Offline
Full Member
Karma: 2
Posts: 117
Arduino rocks
|
 |
« Reply #21 on: July 01, 2012, 05:12:19 pm » |
|
|
|
|
« Last Edit: July 01, 2012, 05:54:50 pm by Paulware »
|
Logged
|
|
|
|
|
Brisbane, Australia
Offline
God Member
Karma: 17
Posts: 845
|
 |
« Reply #22 on: July 01, 2012, 07:33:03 pm » |
Hi Paul
Do you find multiple ultrasonic sensors from the towers etc interfere with each other much? Or how do you avoid that?
Geoff
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 2
Posts: 117
Arduino rocks
|
 |
« Reply #23 on: July 03, 2012, 10:05:11 pm » |
Hi Geoff,
Ultrasonic sensors have a range of about 3 feet. I suppose that there is a potential for the transmission of one to be received as an echo by another, but I'm not sure if internal hardware may discount it (as the value would be higher than a normal echo). Its a fair question and honestly I haven't created enough sensors to be able to test for this.
Which brings up another point that I am just starting to grasp. An IR battlefield is composed of mobile units and static models and static interactive units. I have been focused on the mobile units, but truly the larger effort is creating the Battlefield complete with models of cities, farmlands, terrain and static units. To create a quality battlefield is at least as time/money consuming as creating a quality G-Scale train layout. This hasn't necessarily discouraged me from continuing but it has given me a better grasp of what I want to create.
|
|
|
|
« Last Edit: July 04, 2012, 07:20:31 am by Paulware »
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #24 on: July 04, 2012, 02:07:06 am » |
, but I'm not sure if internal hardware may discount it (as the value would be higher than a normal echo) I think you may be overestimating the sophistication of U/S sensors. I've seen them fooled by the U/S components of the sound of keys being jangled.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
0
Offline
Full Member
Karma: 2
Posts: 117
Arduino rocks
|
 |
« Reply #25 on: July 04, 2012, 11:45:24 pm » |
I hacked the star wars "Hellfire" tank. Here is the board pins identified for left/right forward/reverse and fire:  Here is some more info: http://atmega.site40.net/default.php?bookmark=#StarWarsTankI will post a video shortly
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 0
Posts: 204
|
 |
« Reply #26 on: July 13, 2012, 01:36:12 pm » |
Those are really cool! Do you have any pictures of the mechanical workings, motors, tracks etc?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 2
Posts: 117
Arduino rocks
|
 |
« Reply #27 on: September 15, 2012, 09:26:31 pm » |
Any particular model that you would like to see gears/motors? I have a bunch of Heng Long 1/16, no Tamiyas. The GI Joe tanks I've actually had trouble with the gears and need some help to refurbish them.
You know what would be cool?...Take a wifi camera that has pan/tilt, and hack the pan/tilt to control the movement of the tank. I have a wanscam that I am trying to get to work...Anybody read chinese?
Paul
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Sr. Member
Karma: 4
Posts: 292
|
 |
« Reply #28 on: December 09, 2012, 06:58:05 pm » |
Hi, Paulware! Nice work!!! I loved your tanks!!!  I have only one Huan Qi Tank, model 516-10 and green color and 40MHz, I could not find the yellow one yet and I'm working on a arduino bot to fight with green. I made arduino tank using chassis from another tank, it is controlled by bluetooth and I added an IR emitter and receiver. I found on your library the code for barrel shot (huanQiPulses[] = {12500, 600, 2150, 600, 700, 1950, 600, 8500};) and now my arduino tank can fire against green tank with barrel  . Thank you for it. Now I want one little favor from you ^^ Can you scan machine gun pulses? Please? Oh.. and sorry for my bad english, i'm brazilian and my portuguese is bad, imagine other languages lol I am alert here to see your upcoming projects!!!  Happy development!
|
|
|
|
« Last Edit: December 09, 2012, 07:55:10 pm by Mortis »
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 2
Posts: 117
Arduino rocks
|
 |
« Reply #29 on: December 09, 2012, 09:19:03 pm » |
Machine gun is very similar. I'm glad you liked it. I'll have to check my library, or do quick check. I have a library for hacking an ir pulse. That may be useful as well. Can you point me to how you did the Bluetooth control. I have a Bluetooth shield but I'm not sure if you need a master or a slave. Thanks Paul
|
|
|
|
« Last Edit: December 09, 2012, 09:29:08 pm by Paulware »
|
Logged
|
|
|
|
|
|