[Alex Lao] has been playing around with the CPLD-like parts of a PSoC. Which is to say, he’s been implementing simple logic functions “in hardware” in software. And after getting started with the chip by getting accustomed to the different clock sources, he built a simple AM radio that transmits at 24 MHz.
The device that [Alex] is learning on is a Cypress PSoC 5LP, or more specifically their (cheap) prototyping kit for the part. The chip itself is an ARM microprocessor core with a CPLD and some analog tidbits onboard to make interfacing the micro with the outside world a lot easier. [Alex] doesn’t even mess around with the microprocessor, he’s interested in learning the CPLD side of things.
He starts off with a 24 MHz carrier and a 1 kHz tone signal, and combines them with a logical AND function. When the tone is on, the carrier plays through; that’s AM radio at its most elemental. Everything is logic (square waves) so it’s a messy radio signal, but it’ll get the job done.
Adding a multiplexer up front allows [Alex] to play two tones over his “radio” station. Not bad for some simple logic, and a fantastic Hello World project for a CPLD. We can’t wait to see what [Alex] is up to next!
If you’re interested in getting your feet wet with either CPLDs in general or a CPLD + micro system like Cypress’s, the development kit that [Alex] is using looks like a cheap and painless way to start. (Relatively speaking — PSoCs are a step or two up a steep learning curve from the simpler 8-bit micros or an Arduino.) Hackaday’s own [Bil Herd] has a video on getting started with another member of the Cypres PSoC family, so you should also check that out.
Many of us still tune in to terrestrial radio for one reason or another, be it baseball games, talk radio, or classic rock. But do you know how the sound is transmitted to your receiver? This week, our spotlight shines upon a short film produced by KYW Radio that serves as a cheerful introduction to the mysteries of amplitude modulation (AM) radio transmission as they were in 1940.
Sound vibrations enter a microphone and are converted to electrical current, or an audio waveform. The wave is amplified and sent several miles away to the transmitting station. During this trip, the signal loses power and so is amplified at the transmitting station in several stages. This audio wave can’t be transmitted by itself, though; it needs to catch a ride on a high-frequency carrier wave. This wave is generated on-site with a huge crystal oscillator, then subjected to its own series of amplifications prior to broadcast.
The final step is the amplitude modulation itself. Here, the changing amplitude of the original audio wave is used to modulate that of the high-frequency carrier wave. Now the signal is ready to be sent to the tower. Any receiver tuned in to the carrier frequency and in range of the signal will capture the carrier wave. Within the reciever, these currents are converted back to the vibrations that our ears know and love.
Continue reading “Retrotechtacular: The Spirit of Radio”
[Angus McInnes] has been working on AM radio transmission techniques. He tried out a method of using a VGA port for the task but found the vertical blanking was audible. His latest experiments use a Teensy microcontroller board as an AM transmitter.
This is not a standalone solution, but rather a hardware extension for his laptop. This is because the microprocessor doesn’t have enough cycles to do much more than read bytes over USB and push their bits out one of the I/O pins.
To get a steady stream of data he’s using isochronous mode to push a steady data stream via the USB connection. Bulk transfer is another option but [Angus] found that it caused some jitter in the audio. Each byte is fed to the AVR SPI hardware once every eight clock cycles. His transmission can be picked up from across the room, but that’s the limit since the AVR doesn’t put out that strong of a signal. But it should be a rather trivial exercise to build a simple amplifier.
Make sure to brush up on your safety protocol if you undertake this project. The penalty for messing up when using live wiring as a radio receiver antenna is rather severe. But after reading about it in some old books [Miroslav] decided to give this technique a try.
We love the old-school chalk board he used to map out his test circuit. With safety in mind, he uses two high voltage capacitors in series. If these should somehow fail, there is also a fuse which would blow, disconnecting the apparatus from mains. But just to be sure, he isolated the circuit using a two coils. These step down the voltage, but would also burn out if hit with a voltage spike.
You can see the results he gets using the setup as an AM radio receiver in the video after the break. He tested against a meter long antenna and found that his setup far outperforms it. Actually, he found that a six foot extension cord which is not plugged into the wall will also outperform the 1m antenna. Something to keep in mind the next time the ball game isn’t coming in as clear as you would like.
Continue reading “Using mains wiring as an antenna”
[Scott Harden] is drilling teeth by day and designing radios that send secret messages by night. He’s set his sights on the Hellschreiber protocol which was used by the Germans in World War II along with their Enigma encryption system. The protocol is a viable alternative for transmitting and receiving code in environments with too much background noise for other communication systems.
His goal was to develop his own transmitter using just one microcontroller. He picked an ATmega48 and coupled it with a 40 MHz crystal oscillator. [Scott] mentions that there is no other hardware necessary, but static messages stored in an array so you’d need some other hardware to push your own characters through via the chip’s UART or otherwise. The AVR sends messages by converting the data into audio using PWM. That signal is fed into the crystal oscillator, which produces an amplitude modulated signal (AM) that can then be transmitted.
Check out his video after the break for a demonstration. He’s decoding the transmitted data using a free program called Ham Radio Deluxe.
Continue reading “[Scott] made a single-chip Hellschreiber on earth”