Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 55
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
lokeycmos (43)


Next birthdays
05/24 Simon Barsinister (63)
05/27 Daniel Davis (54)
05/29 Zonalklism (34)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Projects
« Previous topic | Next topic »   

8 channel IR remote control (RC car featured)

Move Thread LAN_403
uzzors2k
Thu Dec 27 2007, 08:33PM Print
uzzors2k Registered Member #95 Joined: Thu Feb 09 2006, 04:57PM
Location: Norway
Posts: 1308
To do something different I thought I would try making a remote control system. It's based on two PIC16F88's, but with some software changes the PIC16F628 could be used instead.

The transmitter software will sweep through the inputs and set an array with bits according to how the input is. This is then sent via IR. The IR protocol I made uses a 2ms start pulse, followed by either 1ms pulse for logic 1 or 0.5ms for logic 0. There is 0.5ms between each pulse. The receiver reads this and puts it into an array. This array is then used to set the output pins. Basically it uses parallel data acquisition, so multiple buttons can be pushed without errors. I've made it so it will only send a new IR pulse train if the inputs have changed as this saves power. The only disadvantage I have found so far is once the receiver looses reception it will continue with what is was doing. No good for RC planes or helicopters!

Of course I had to test the setup, so I found an old RC car with no remote and rebuilt the electronics from scratch. Range is poor with the current IR system, only 1 meter angry but it proves that the concept works. Bending over the car and running with it everywhere isn't too practical though, so in the future I'll switch to an RF system. All you hams out there - is it feasible to make an RF transmitter/receiver pair with ~50 meters of range? I haven't put much thought into frequency, but either 25 -30MHz or FM frequencies.

Here are the source, firmware and schematics.

]1198787565_95_FT0_8ch_ir_remote.zip[/file]
1198787565 95 FT0 Ir Transmitter 1198787565 95 FT0 Car Insides 1198787565 95 FT0 Car Front
Back to top
Bjørn
Thu Dec 27 2007, 09:27PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
You will be able to get alot better range with fewer parts using IR, just keep on hacking. Usually fewer parts means more complex software, that means you learn more.

A PIC can send radio signals using 100% software, both FM an AM. I made a software transmitter I could recieve on a normal 96 MHz FM radio. To generate FM you need to mess with the oscillator/crystal to make it generate different frequencies. AM is much simpler, in the simplest case you just connect your 38kHz (higher is better, I used 12 MHz) to an antenna or just a short wire and modulate it. And you receive the harmonics at some multiple of your frequency unless you have a reciever that can reach it directly.

I have made both my PC and a PIC transmit more than 50 metres without any external parts.
Back to top
HDR
Fri Dec 28 2007, 01:20AM
HDR Registered Member #1165 Joined: Sun Dec 09 2007, 04:41AM
Location: GA, USA
Posts: 35
Could you post an example/explination of how to get a PIC to do this? I'd like to build a cheap radio for 2 meters, since a power spike in my moms car fried my HT a few years ago... And a weak software radio and a power amp seems like it'd be a lot easier to build than a regular radio.
Back to top
LarsE
Fri Dec 28 2007, 01:53AM
LarsE Registered Member #153 Joined: Sun Feb 12 2006, 03:44PM
Location: Sweden
Posts: 31
I would have used a logic-level FET to drive the IR-led and do all the modulation in the software, you can also decrease the duty-cycle so you can increase the led current and get better range.
Also using a header pulse and a parity bit can be a good idea for increased error detection.
Back to top
uzzors2k
Fri Dec 28 2007, 12:25PM
uzzors2k Registered Member #95 Joined: Thu Feb 09 2006, 04:57PM
Location: Norway
Posts: 1308
That's awesome Bjørn, I had no idea it was so easy to send RF. The hard part will be making a receiver...

I simplified the circuit so modulation is done via software, this cut the amount of external transistors down to 1. I also reduced the IR LED resistor size, and added a capacitor for larger peak currents. The range has doubled which is good, but it's still less than a standard TV remote can boast. I think the carrier frequency might be off, causing the BPF in the IR module to limit the range. I'll see if I can get it closer. Here are updated schematics and firmware.
]1198844721_95_FT36533_8ch_ir_control2.zip[/file]
Back to top
Tom540
Fri Dec 28 2007, 03:51PM
Tom540 Banned on 3/17/2009.
Registered Member #487 Joined: Sun Jul 09 2006, 01:22AM
Location:
Posts: 617
Are you using a matched Tx and RX diodes? Or you might try using three IR LEDs in paralell. I recently bought one of those really tiny IR controlled helicopters and the range on them is amazing. I had it 3 stories over my head and could still control it.

As far as radio I have a schematic for a 303Mhz AM Rx and TX Ive used on a robot project. It's pretty simple. Ive attached the receiver if you plan on using it ill dig up the TX for you. Digikey stocks all the parts. I just noticed the op amp is actually a opa2347.
]1198857083_487_FT36533_303mhzrx.pdf[/file]
Back to top
uzzors2k
Tue Jan 01 2008, 01:09PM
uzzors2k Registered Member #95 Joined: Thu Feb 09 2006, 04:57PM
Location: Norway
Posts: 1308
If you could find the transmitter that would be great Tom. The receiver looks nice and simple. Most I've seen have multiple transformers, inductors and capacitors that all need tuning. dead

My scope was uncalibrated giving 10% error, so when I tuned the transmitter for 38kHz it was actually at 34kHz. I set the carrier to 38kHz and the range has doubled again. I think it's about as good as it's going to get now. The receiver has a small reception cone which is fine for TVs and stationary objects, but no good for a moving car. Since the receiver is mounted on the roof it almost never gets a clear line of sight and must rely on reflection. I'll spend time working on RF instead.

Corrected firmware. ]transmitter.zip[/file]
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.