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.
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 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.
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.
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.
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.
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]
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]
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.
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.
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.