Schlagwort: radio

  • This radio tailors the morning news to your waking mood

    This radio tailors the morning news to your waking mood

    Reading Time: 2 minutes

    Arduino TeamJuly 2nd, 2021

    Very few of us are ever excited to wake up for the work day, but your mood can still vary from one morning to the next. If you had a rough night, you might wake up feeling melancholy. In that case, the last thing you want to do is hear depressing news on the radio. To help people enter wakefulness, Varenya Raj built a radio called Nidra that tailors the morning news to suit its user’s mood.

    Nidra’s design is unusual, in that it doesn’t resemble any radio or alarm clock that you’ve ever seen. Atop its plastic enclosure there are two buttons. The first looks like a pin cushion and the second seems like it could have come from a shaggy, purple marmot. 

    If the user is in a bad mood when the alarm goes off, they can slam their hand down onto the cushioned button. Nidra will then play only upbeat news. If the user is in a better mood and can handle the full breadth of the day’s news, they can stroke the purple fur. At the end of the month, a thermal receipt printer pops out statistics on the number of times the user pressed each button.

    An Arduino Uno board controls Nidra’s behavior. The cushion has a standard button, while the fur attaches to a force sensitive resistor. Depending on the button pressed, the Arduino sketch tells a connected computer running a Processing sketch to play news from one of two RSS feeds. We imagine that most people will choose the happy news most mornings, but it is always nice to have options. 

    Website: LINK

  • Build your child a wooden MP3 player for $100

    Build your child a wooden MP3 player for $100

    Reading Time: 2 minutes

    Build your child a wooden MP3 player for $100

    Arduino TeamDecember 30th, 2019

    If your young child wants to listen to music, what better way than a beautiful wooden MP3 “radio,” with an array of buttons that select the album? After being inspired by a similar commercial product, Redditor “DerThes” decided to make such a device for a fraction of the cost using an Arduino Uno for control, along with a Music Maker Shield to play tunes off an SD card.

    The toddler can select songs from a grid of 16 input buttons, which are sent to the Uno via a pair of shift registers. There’s also a “parent’s mode” with the ability to choose from up to 99 albums, and a volume knob for… adjusting the volume. 

    Finally, the unt features a beautiful enclosure made out of oak and black walnut, with corners softened by dowels to reduce collateral damage “after the player has gone airborne.” More details can be seen on Imgur here and on GitHub.

    This is an easy to use MP3 player for small children. I made this for my 2 year old for Christmas. Each of the top 9 buttons will play an album. The black buttons on the bottom are prev – play/pause – next. The player also supports an alternative playback mode that can be activated using a special key combination. That combination will turn the buttons into a 10 digit input matrix allowing playback of up to 99 albums. That way the player can be used by parents as well. 😉

    See GitHub for more details, the schematics for the button PCB and the firmware. https://github.com/MichaelThessel/arduino-stoerbert

    This is heavily inspired by Hoerbert: https://en.hoerbert.com

    When I first saw the Hoerbert at a friends place I wanted it for my child. After I heard of the $400 price tag I knew that I needed to spend 50 hrs and $100 to build my own.

    Website: LINK

  • Build your child a wooden MP3 player for $100

    Build your child a wooden MP3 player for $100

    Reading Time: 2 minutes

    Build your child a wooden MP3 player for $100

    Arduino TeamDecember 30th, 2019

    If your young child wants to listen to music, what better way than a beautiful wooden MP3 “radio,” with an array of buttons that select the album? After being inspired by a similar commercial product, Redditor “DerThes” decided to make such a device for a fraction of the cost using an Arduino Uno for control, along with a Music Maker Shield to play tunes off an SD card.

    The toddler can select songs from a grid of 16 input buttons, which are sent to the Uno via a pair of shift registers. There’s also a “parent’s mode” with the ability to choose from up to 99 albums, and a volume knob for… adjusting the volume. 

    Finally, the unt features a beautiful enclosure made out of oak and black walnut, with corners softened by dowels to reduce collateral damage “after the player has gone airborne.” More details can be seen on Imgur here and on GitHub.

    This is an easy to use MP3 player for small children. I made this for my 2 year old for Christmas. Each of the top 9 buttons will play an album. The black buttons on the bottom are prev – play/pause – next. The player also supports an alternative playback mode that can be activated using a special key combination. That combination will turn the buttons into a 10 digit input matrix allowing playback of up to 99 albums. That way the player can be used by parents as well. 😉

    See GitHub for more details, the schematics for the button PCB and the firmware. https://github.com/MichaelThessel/arduino-stoerbert

    This is heavily inspired by Hoerbert: https://en.hoerbert.com

    When I first saw the Hoerbert at a friends place I wanted it for my child. After I heard of the $400 price tag I knew that I needed to spend 50 hrs and $100 to build my own.

    Website: LINK

  • Listen to World War II radio recordings with a Raspberry Pi Zero

    Listen to World War II radio recordings with a Raspberry Pi Zero

    Reading Time: 9 minutes

    With the 50th anniversary of the D-Day landings very much in the news this year, Adam Clark found himself interested in all things relating to that era. So it wasn’t long before he found himself on the Internet Archive listening to some of the amazing recordings of radio broadcasts from that time. In this month’s HackSpace magazine, Adam details how he built his WW2 radio-broadcast time machine using a Raspberry Pi Zero W, and provides you with the code to build your own.

    As good as the recordings on the Internet Archive were, it felt as if something was missing by listening to them on a modern laptop, so I wanted something to play them back on that was more evocative of that time, and would perhaps capture the feeling of listening to them on a radio set.

    I also wanted to make the collection portable and to make the interface for selecting and playing the tracks as easy as possible – this wasn’t going to be screen-based!

    Another important consideration was to house the project in something that would not look out of place in the living room, and not to give away the fact that it was being powered by modern tech.

    So I came up with the idea of using an original radio as the project case, and to use as many of the original knobs and dials as possible. I also had the idea to repurpose the frequency dial to select individual years of the war and to play broadcasts from whichever year was selected.

    Of course, the Raspberry Pi was immediately the first option to run all this, and ideally, I wanted to use a Raspberry Pi Zero to keep the costs down and perhaps to allow expansion in the future outside of being a standalone playback device.

    Right off the bat, I knew that I would have a couple of obstacles to overcome as the Raspberry Pi Zero doesn’t have an easy way to play audio out, and I also wanted to have analogue inputs for the controls. So the first thing was to get some audio playing to see if this was possible.

    Audio playback

    The first obstacle was to find a satisfactory way to playback audio. In the past, I have had some success using PWM pins, but this needs a low-pass filter as well as an amplifier, and the quality of audio was never as good as I’d hoped for.

    The other alternative is to use one of the many HATs available, but these come at a price as they are normally aimed at more serious quality of audio. I wanted to keep the cost down, so these were excluded as an option. The other option was to use a mono I2S 3W amplifier breakout board – MAX98357A from Adafruit – which is extremely simple to use.

    As the BBC didn’t start broadcasting stereo commercially until the late 1950s, this was also very apt for the radio (which only has one speaker).
    Connecting up this board is very easy – it just requires three GPIO pins, power, and the speaker. For this, I just soldered some female jumper leads to the breakout board and connected them to the header pins of the Raspberry Pi Zero. There are detailed instructions on the Adafruit website for this which basically entails running their install script.

    I’d now got a nice playback device that would easily play the MP3 files downloaded from archive.org and so the next task was to find a suitable second-hand radio set.

    Preparing the case

    After a lot of searching on auction sites, I eventually found a radio that was going to be suitable: wasn’t too large, was constructed from wood, and looked old enough to convince the casual observer. I had to settle for something that actually came from the early 1950s, but it drew on design influences from earlier years and wasn’t too large as a lot of the real period ones tended to be (and it was only £15). This is a fun project, so a bit of leeway was fine by me in this respect.

    When the radio arrived, my first thought as a tinkerer was perhaps I should get the valves running, but a quick piece of research turned up that I’d probably have to replace all the resistors and capacitors and all the old wiring and then hope that the valves still worked. Then discovering that the design used a live chassis running at 240 V soon convinced me that I should get back on track and replace everything.

    With a few bolts and screws removed, I soon had an empty case.

    I then stripped out all the interior components and set about restoring the case and dial glass, seeing what I could use by way of the volume and power controls. Sadly, there didn’t seem to be any way to hook into the old controls, so I needed to design a new chassis to mount all the components, which I did in Tinkercad, an online 3D CAD package. The design was then downloaded and printed on my 3D printer.

    It took a couple of iterations, and during this phase, I wondered if I could use the original speaker. It turned out to be absolutely great, and the audio took on a new quality and brought even more authenticity to the project.

    The case itself was pretty worn and faded, and the varnish had cracked, so I decided to strip it back. The surface was actually veneer, but you can still sand this. After a few applications of Nitromors to remove the varnish, it was sanded to remove the scratches and finished off with fine sanding.

    The wood around the speaker grille was pretty cracked and had started to delaminate. I carefully removed the speaker grille cloth, and fixed these with a few dabs of wood glue, then used some Tamiya brown paint to colour the edges of the wood to blend it back in with the rest of the case. I was going to buy replacement cloth, but it’s fairly pricey – I had discovered a trick of soaking the cloth overnight in neat washing-up liquid and cold water, and it managed to lift the years of grime out and give it a new lease of life.

    At this point, I should have just varnished or used Danish oil on the case, but bitten by the restoration bug I thought I would have a go at French polishing. This gave me a huge amount of respect for anyone that can do this properly. It’s messy, time-consuming, and a lot of work. I ended up having to do several coats, and with all the polishing involved, this was probably one of the most time-consuming tasks, plus I ended up with some pretty stained fingers as a result.

    The rest of the case was pretty easy to clean, and the brass dial pointer polished up nice and shiny with some Silvo polish. The cloth was glued back in place, and the next step was to sort out the dial and glass.

    Frequency, volume, glass, and knobs

    Unfortunately, the original glass was cracked, so a replacement part was cut from some Makrolon sheet, also known as Lexan. I prefer this to acrylic as it’s much easier to cut and far less likely to crack when drilling it. It’s used as machine guards as well and can even be bent if necessary.

    With the dial, I scanned it into the PC and then in PaintShop I replaced the existing frequency scale with a range of years running from 1939 to 1945, as the aim was for anyone using the radio to just dial the year they wanted to listen to. The program will then read the value of the potentiometer, and randomly select a file to play from that year.

    It was also around about now that I had to come up with some means of having the volume control the sound and an interface for the frequency dial. Again there are always several options to consider, and I originally toyed with using a couple of rotary encoders and using one of these with the built-in push button as the power switch, but eventually decided to just use some potentiometers. Now I just had to come up with an easy way to read the analogue value of the pots and get that into the program.

    There are quite a few good analogue-to-digital boards and HATs available, but with simplicity in mind, I chose to use an MCP3002 chip as it was only about £2. This is a two-channel analogue-to-digital converter (ADC) and outputs the data as a 10-bit value onto the SPI bus. This sounds easy when you say it, but it proved to be one of the trickier technical tasks as none of the code around for the four-channel MCP3008 seemed to work for the MCP3002, nor did many of the examples that were around for the MCP3002 – I think I went through about a dozen examples. At long last, I did find some code examples that worked, and with a bit of modification, I had a simple way of reading the values from the two potentiometers. You can download the original code by Stéphane Guerreau from GitHub. To use this on your Raspberry Pi, you’ll also need to run up raspi-config and switch on the SPI interface. Then it is simply a case of hooking up the MCP3002 and connecting the pots between the 3v3 line and ground and reading the voltage level from the wiper of the pots. When coding this, I just opted for some simple if-then statements in cap-Python to determine where the dial was pointing, and just tweaked the values in the code until I got each year to be picked out.

    Power supply and control

    One of the challenges when using a Raspberry Pi in headless mode is that it likes to be shut down in an orderly fashion rather than just having the power cut. There are lots of examples that show how you can hook up a push button to a GPIO pin and initiate a shutdown script, but to get the Raspberry Pi to power back up you need to physically reset the power. To overcome this piece of the puzzle, I use a Pimoroni OnOff SHIM which cleverly lets you press a button to start up, and then press and hold it for a second to start a shutdown. It’s costly in comparison to the price of a Raspberry Pi Zero, but I’ve not found a more convenient option. The power itself is supplied by using an old power bank that I had which is ample enough to power the radio long enough to be shown off, and can be powered by USB connector if longer-term use is required.

    To illuminate the dial, I connected a small LED in series with a 270R resistor to the 3v3 rail so that it would come on as soon as the Raspberry Pi received power, and this lets you easily see when it’s on without waiting for the Raspberry Pi to start up.

    The code

    If you’re interested in the code Adam used to build his time machine, especially if you’re considering making your own, you’ll find it all in this month’s HackSpace magazine. Download the latest issue for free here, subscribe for more issues here, or visit your local newsagent or the Raspberry Pi Store, Cambridge to pick up the magazine in physical, real-life, in-your-hands print.

    Website: LINK

  • Your own Grand Theft Auto San Andreas radio

    Your own Grand Theft Auto San Andreas radio

    Reading Time: 2 minutes

    Relive the San Andreas glory days with this Grand Theft Auto radio built by Raphaël Yancey.

    Raphaël Yancey on Twitter

    With the “tuned” status LED. https://t.co/PuIi6sY78V

    …and now I have Barracuda stuck in my head.

    The music of GTA

    Anyone who has played Grand Theft Auto knows that one of the best parts of the series is the radio stations: a mix of classic tunes and often comical DJ interludes make driving haphazardly through the streets of San Andreas a joy.

    GTA

    And much like fans of the Fallout series, many of us GTA players are guilty of listening to the in-game music outside of gaming sessions.

    Hacking a radio

    Maker Raphaël Yancey loves the San Andreas tunes so much, he decided to build his own Grand Theft Auto radio, complete with the MP3s available from Rockstar, the game’s creators.

    Raphaël used a 1970s Optalix TO100 portable radio for this project, along with a Raspberry Pi 3. While this would be enough to create a music player, he also added two potentiometers for volume control and frequency tuning, as shown in the video above.

    GTA Radio

    Python code allows the potentiometers to move within a virtual frequency range of 88.7Mhz to 108.0Mhz, with five stations to find along the way. A status LED lights up whenever you tune into a station, and the Pi lets you listen to it. Raphaël explains:

    The software I wrote can handle as many stations as the hardware can! Also, the stations all play simultaneously, not only when you tune in, for that real, sweet radio vibe.

    You can find Raphaël’s complete code for building your own GTA radio here. We’re keen to see what other game-based music projects our community will come up with. Here at Pi Towers, we have a spare Fallout Pip-Boy that’s aching to play the sweet sounds of the post-apocalyptic Commonwealth…

    Raspberry Pi and music

    The integration of Raspberry Pi within music projects is a theme we’re very fond of. From rejuvenated jukeboxes such as Tijuana Rick’s 1960’s Wurlitzer, to The Nest, a USB music download system built into Table Mountain, we’ve seen a host of imaginative projects and are always eager to discover more.

    So if you’ve used a Raspberry Pi in your music project, whether it be a jukebox, a guitar pedal, or an instrument, be sure to share it with us.

    Website: LINK

  • Ten awesome 3D-printable Raspberry Pi goodies

    Ten awesome 3D-printable Raspberry Pi goodies

    Reading Time: 4 minutes

    3D printing has become far more accessible for hobbyists, with printer prices now in the hundreds instead of thousands of pounds. Last year, we covered some of the best 3D-printable cases for the Pi, and since then, Raspberry Pi enthusiasts have shared even more cool designs on sites such as MyMiniFactory and Thingiverse!

    Here are ten of our recent favourites:

    World Cup Sputnik

    “With the World Cup now underway, I wanted a Russia-themed football sculpture to hang over the desk,” explains creator Ajax Jones. “What better than a football-styled Sputnik!”

    Raspberry Pi 3d-printable World Cup Sputnik

    The World Cup Sputnik comes complete with a Raspberry Pi that transmits the original Sputnik ‘beeps’ on an FM frequency, allowing co-workers to tune in for some 1960s nostalgia.

    Radios

    We see an abundance of musical Raspberry Pi projects online, and love looking out for the ones housed in interesting, unique cases like these:

    The MiniZ is a streaming radio based on the Zenith Cube, created by Thingiverse user thisoldgeek.

    This is a case for a small, retro radio powered by Logitech Media Server. It uses a Raspberry Pi Zero W and displays a radio dial (tunes via a knob), a clock, and ‘Now Playing’ album art.

    For something a little more simple to use, Lukas2040‘s NFC radio for children comes with illustrated, NFC-tagged cards to allow his two-year-old daughter to pick her own music to play.

    Gaming

    Whether it’s console replicas or tabletop arcade cabinets, the internet is awash with gaming-themed Raspberry Pi projects. Here are a few of our favourites!

    The Okama Gamesphere is a fictional game console from South Park. Leodym has taken the rather stylish design and converted it into a Raspberry Pi 3 case.

    Canino‘s Yet Another Mini Arcade is exactly that. We really like how it reminds us of old, imported gaming consoles from our childhoods.

    3d-printable Raspberry Pi arcade case

    “I really love the design and look of the HP OMEN Accelerator,” writes designer STIG_. “So I decided to draw up a case for the Raspberry Pi 3 Model B.”

    We really love it too, STIG_. Well done.

    Ironman, Ironman, does whatever an Ironman can…

    atlredninja‘s Ironman Mark 7 torso housing for the Google AIY Projects Voice Kit is pretty sweet!

    Iron man AIY case Neopixel Rings Adafruit

    Iron man AIY case Neopixel Rings Adafruit 16 and 12 LEDS. 3d files and instructions for assembly here: https://www.thingiverse.com/thing:2950452 This is just a test to make sure the LEDs are working and the A.I. is working correctly. This took me about 3 weeks to design, print, and assemble.

    This model is atlredninja‘s second version of an Ironman-themed AIY project: the first fits within a replica helmet. We’re looking forward to a possible third edition with legs. And a fourth that flies.

    We can dream, can’t we?

    Speaking of Marvel

    How often have you looked at Thor’s hammer and thought to yourself “If only it had a Raspberry Pi inside…”

    Raspberry Pi Thor case

    This case from furnibird is one of several pop culture–themed Raspberry Pi cases that the designer has created. Be sure to check out the others, including a Deathstar and Pac-Man.

    3D-printable bird box

    chickey‘s 3D-printable Raspberry Pi Bird Box squeezes a Raspberry Pi Zero W and a camera into the lid, turning this simple nesting box into a live-streaming nature cam.

    The Raspberry Pi uploads images directly to a webpage, allowing you to check in on the feathered occupants from any computer or mobile device. Nifty.

    Print a Raspberry Pi!

    Using a 3D-printed Raspberry Pi in place of the real deal while you’re prototyping in the workshop may save you from accidentally damaging your tiny computer.

    AlwaysComputing designed this Raspberry Pi Voxel Model using MagicaVoxel, stating “I like to tinker and play with the program MagicaVoxel. I find it therapeutic!”

    What else?

    What Raspberry Pi–themed 3D prints have you seen lately? Share your favourites with us in the comments, or on Twitter and Facebook.

    Website: LINK

  • Weekend Projects – Raspberry Pirate Radio

    Weekend Projects – Raspberry Pirate Radio

    Reading Time: < 1 minute

    Complete instructions for this episode of Weekend Projects can be found at http://makezine.com/projects/raspberr…

    Using a readymade disk image and one simple solder connection, turn your Raspberry Pi into a streaming pirate radio.

    This project was originally created by Oliver Mattos and Oskar Weigl. It was revised by Ryan Grassel and extended by MAKE Labs engineering intern Wynter Woods. Go team!

    NOTE: The Raspberry Pi’s broadcast frequency can range between 1Mhz and 250Mhz, which may interfere with government bands. We advise that you limit your transmissions to the standard FM band of 87.5MHz–108.0MHz and always choose a frequency that’s not already in use, to avoid interference with licensed broadcasters.

    http://makezine.com/projects/raspberry-pirate-radio/