Friday Hack Chat: Circuit Python

Back in the olden days, if you wanted to learn how to program a computer, you used the BASIC interpreter stored in ROM. This is how an entire generation of devs learned how to program. Now, home computers do not exist, there is no programming language stored in ROM, and no one should inflict JavaScript on 8-year-olds. What is the default, My First Programming Language™ today? Python. And now it’s on microcontrollers.

For this week’s Hack Chat on hackaday.io, we’re going to be talking all about Circuit Python. Circuit Python is based on the Open Source MicroPython, a Python 3 interpreter that implements a subset of the Python language on microcontrollers and other constrained environments. It is the spiritual successor of BASIC on every computer: MicroPython has an interactive prompt, arbitrary precision integers, closures, lists, and more. All of this fits on a microcontroller with 256 kB of code space and 16 k of RAM.

Our guests for this week’s Hack Chat will be [Scott Shawcroft] and [Dan Halbert] from Adafruit. [Scott] started working on MicroPython with Adafruit in September 2016 and has led the renamed CircuitPython effort ever since. [Dan] started working on CircuitPython in early 2017 and joined Adafruit in August of that year. [Dan], by the way, is the original author of the ‘more’ command in UNIX.

For this Hack Chat, we’re going to be talking about CircuitPython, its history, current boards that support the project, and the end goals for CircuitPython. We’ll be talking about future plans, what will be supported in the future, and asking any technical questions about CircuitPython.

join-hack-chat

Our Hack Chats are live community events on the Hackaday.io Hack Chat group messaging. This Hack Chat is going down Friday, February 2nd at noon, Pacific time. Time Zones got you down? Here’s a handy countdown timer!

Click that speech bubble to the left, and you’ll be taken directly to the Hack Chat group on Hackaday.io.

You don’t have to wait until Friday; join whenever you want and you can see what the community is talking about.

Repairs You Can Print: The Zipper Box

Picture it: winter, a few years ago. [Ted Yapo]’s son is sent to the front lines of a snowball war. He rises to the task, pelting kid after kid with ease and taking down the Johnson twins with a two-fisted trebuchet maneuver. As he hunkers down to form the last snowball needed to claim victory, the unthinkable happens: the zipper box on his coat breaks and falls silently into the snow. Unaware, he leaps to his feet to take his final shot and the whole zipper unfurls, exposing him to both the cold and the enemy. They won the war, but at what cost?

[Ted] figured the coat was done for. He thought about replacing the zipper entirely, but that was going to be a lot of work. He cast a forlorn look around his workshop and his gaze fell upon the 3D printer in the corner. I can rebuild it! He thought. I have the technology! He was off to design a new box in OpenSCAD and had sturdy ABS replacement zipper box in no time. He installed it with dab of Duco cement, and the rest is history. That coat saw two more winters and countless snowball wars before [Private Yapo] presumably grew out of the thing.

Zippers are the unsung heroes of clothing. If you don’t know much about zippers, sink your teeth into [Dan Maloney]’s recent ode to the quickest fastener we’ve got.

Global Resistor Shortage, Economics, And Consumer Behavior

The passive component industry — the manufacturers who make the boring but vital resistors, capacitors, and diodes found in every single electronic device — is on the cusp of a shortage. You’ll always be able to buy a 220 Ω, 0805 resistor, but instead of buying two for a penny like you can today, you may only get one in the very near future.

Yageo, one of the largest manufacturers of surface mount (SMD) resistors and multilayer ceramic capacitors, announced in December they were not taking new chip resistor orders. Yageo was cutting production of cheap chip resistors to focus on higher-margin niche-market components for automotive, IoT, and other industrial uses, as reported by Digitimes. Earlier this month, Yaego resumed taking orders for chip resistors, but with 15-20% higher quotes (article behind paywall, try clicking through via this Tweet).

As a result, there are rumors of runs on passive components at the Shenzhen electronics market, and several tweets from members of the electronics community have said the price of some components have doubled. Because every electronic device uses these ‘jellybean’ parts, a decrease in supply or increase in price means some products won’t ship on time, margins will be lower, or prices on the newest electronic gadget will increase.

The question remains: are we on the brink of a resistor shortage, and what are the implications of manufacturers that don’t have the parts they need?

Continue reading “Global Resistor Shortage, Economics, And Consumer Behavior”

Strumbot: The Guitar That Strums Itself

[Clare] isn’t the most musically inclined person, but she can strum a guitar. Thanks to a little help from an Arduino, she doesn’t even have to do that.

She built the strumbot, which handles the strumming hand duties of playing the guitar. While [Claire] does believe in her strumbot, she didn’t want to drill holes in her guitar, so hot glue and double-sided foam tape were the order of the day.

The business end of the strumbot is a micro servo. The servo moves two chopsticks and draws the pick across the strings. The tiny servo surprisingly does a great job getting the strings ringing. The only downside is the noise from the plastic gears when it’s really rocking out.

Strumbot’s user interface is a 3D-printed case with three buttons and three LEDs. Each button activates a different strum pattern in the Arduino’s programming. The LEDs indicate the currently active pattern. Everything is powered by a USB power pack, making this a self-contained hack.

[Clare] was able to code up some complex strum patterns, but the strumbot is still a bit limited in that it only holds three patterns. It’s good enough for her rendition of “Call Me Maybe”, which you can see in the video after the break. Sure, this is a simple project, not nearly as complex as some of the robotic guitar mods we’ve seen in the past. Still, it’s just the ticket for a fun evening or weekend project – especially if you’re introducing the Arduino to young coders. Music, hacking, and modding – what more could you ask for?

Continue reading “Strumbot: The Guitar That Strums Itself”

What Is This, A Controller For Ants?!

What’s the smallest controller you’ve ever used? [BitBuilt] forum user [Madmorda] picked up a cool little GameCube controller keychain with semi-working buttons at her local GameStop. As makers are wont to do, she figured she could turn it into a working controller and — well — the rest is history.

This miniaturized controller’s original buttons were essentially one piece of plastic and all the buttons would depress at once — same goes for the D-pad. Likewise, the original joystick and C-stick lacked springs and wouldn’t return to a neutral position after fidgeting with them. To get the ball rolling, [Madmorda] picked up a GC+ board — a custom GameCube controller board — just small enough to fit this project, eleven hard tact switches for the various buttons, and two squishy tact switches to replicate the original controller’s L and R button semi-analog, semi-digital functionality.

Continue reading “What Is This, A Controller For Ants?!”

Kids Kitchen That Says BEEP

Children have always liked to learn by copying the adults around them, and thus have always desired toys that emulate the tools which their older forebears use on a daily basis. [rhoalt]’s daughter wished for an oven to play with, so a trip to IKEA was in order to get started.

The build begins with the IKEA Duktig, a beautiful fun-sized oven. [rhoalt] then breaks out the hacker staple foods of 7-segment displays, swanky backlit buttons and an Arduino Nano. Through some careful handiwork, the wooden panels that make up the toy oven are drilled and routed out to fit the components.

The electronics are all used to create an oven with a digital timer, and the final effect achieved is rather nice. The glowy buttons can be used to set and reset the timer, while an LED strip inside lights up to simulate cooking. [rhoalt] shares all the construction details along with some parent-friendly tips, like taping over the buzzer to reduce the volume, and ensuring the timer is limited to 10 minutes to avoid any late-night surprises.

It’s a tidy project with a strong sense of fun, and the presentation is top-notch. Even we older, jaded hackers light up for a good glowy-buttoned project, so we’re sure [rhoalt]’s daughter loves her new toy. For more toy oven action, check out this Easy Bake converted to USB. Video after the break.

Continue reading “Kids Kitchen That Says BEEP”

Cell Phone Surveillance Car

There are many viable options for home security systems, but where is the fun in watching a static camera feed from inside your place? The freedom to really look around might have been what compelled [Varun Kumar] to build a security car robot to drive around his place and make sure all is in order.

Aimed at cost-effectiveness and WiFi or internet accessibility, an Android smartphone provides the foundation of this build — skipping the need for a separate Bluetooth or WiFi module — and backed up by an Arduino Uno, an L298 motor controller, and two geared DC motors powering the wheels.

Further taking advantage of the phone’s functionality, the robot is controlled by DTMF tones. Using the app DTMF Tone Generator and outputting through the 3.5mm jack, commands are interpreted by a MT8870DE DTMF decoder module.While this control method carries some risks — as with many IoT-like devices — [Kumar] has circumvented one of DTMF’s vulnerabilities by adding a PIN before the security car will accept any commands.

He obtains a live video feed from the phone using AirDroid in concert with VNC server, and assisted by a servo motor for the phone is enabled to sweep left and right for a better look. A VNC client on [Kumar]’s laptop is able to access the video feed and issue commands. Check it out in action after the break!

Continue reading “Cell Phone Surveillance Car”