Speed Up Arduino with Clever Coding

We love Arduino here at Hackaday; they’ve probably done more to make embedded programming accessible to more people than anything else in the history of the field. One thing the Arduino ecosystem is rarely praised for is its speed. That’s where [Playduino]  comes in, with his video (embedded below) that promises to make everyone’s favourite microcontroller run 50x faster.

You might be expecting an unstable overclocking setup, with swapped crystals, tweaked voltages and a hefty heat sink, but no! This is stock hardware. The 50x speedup comes from one simple hack: don’t use digitalWrite();

If you aren’t familiar, the digitalWrite() function is one of the key functions Arduino gives you to operate its boards– specify the pin and the value (high or low) to drive it. It’s very easy, but it’s also very slow. [Playduino] takes a moment to show just how much is going on under the hood when you call digitalWrite(), and shows you what you can do instead if you have a need for speed. (Hint: there’s no Arduino-provided code involved; hardware registers and the __asm keyword show up.)

If you learned embedded programming in an earlier era, this will probably seem glaringly obvious. If you, like so many of us, got started inside of the Arduino ecosystem, these closer-to-the-metal programming techniques could prove useful tools in your quiver. Big thanks to [Stephan Walters] for the tip.

Of course if you prefer to speed things up by hardware rather than software, you can overclock an Arduino– with liquid nitrogen, even.

 

SiTime Launches SiT30100 MEMS Clock Generator with Temperature Sensor for Mobile and IoT Devices

SiTime Launches SiT30100 MEMS Clock Generator with Temperature Sensor for Mobile and IoT Devices

SiTime Corporation, a company focused on precision timing tech, has just introduced the Symphonic SiT30100, a compact clock generator designed for mobile and IoT devices like smartphones, tablets, laptops, and asset trackers.

Christina Paul V
Circuit Digest 14 May 11:22

Turn a Toy Tank into a DIY Autonomous Rover with Arduino

Turn a Toy Tank into a DIY Autonomous Rover with Arduino

If you have ever wondered what could be done with a simple RC toy, YouTuber ‘Basement Creations’ has transformed the toy into a fully functional autonomous rover, complete with GPS navigation and telemetry.

Christina Paul V
Circuit Digest 14 May 08:19

How to build a Smoke and Fire Alarm System using Arduino with SMS Notification

How to build a Smoke and Fire Alarm System using Arduino with SMS Notification

What if you could get an instant SMS alert the moment a fire or smoke is detected at home or office? Through this project tutorial, you can build a fire and smoke alarm system using Arduino UNO R4 that sends real-time SMS notifications. This means you will immediately get alerted even if you are far away.

Yogeshwaran
Circuit Digest 13 May 19:15

onsemi's AR0145CS Hyperlux SG Image Sensors, Now at Mouser, Accurately Capture Moving Scenes

onsemi's AR0145CS Hyperlux SG Image Sensors, Now at Mouser, Accurately Capture Moving Scenes

Mouser Electronics, Inc., the authorized global distributor with the newest electronic components and industrial automation products, is now stocking the AR0145CS Hyperlux™ SG image sensors from onsemi. The AR0145CS is a 1/4.3 inch CMOS digital image sensor with a 1280 (H) x 800 (V) active-pixel array.

Staff
Circuit Digest 12 May 11:39

NavBot-EN01: A Practical, Open Source, Scalable Robot for Learning Robotics

NavBot-EN01: A Practical, Open Source, Scalable Robot for Learning Robotics

If you are into STEM education or just enjoy playing with robots, there’s a new desktop robot that might catch your interest, it’s called the NavBot-EN01 as functional wheel-legged robot. Designed with students, teachers, and hobbyists in mind, it aims to make robotics education more practical, affordable, and fun.

Christina Paul V
Circuit Digest 09 May 06:50

How to Build a Smart Helmet using Arduino?

How to Build a Smart Helmet using Arduino?

As we all know, wearing a helmet is mandatory in most countries, including India while driving a vehicle, not just because of police fines but to save our own lives. Since it holds such an important position, making it smart would be highly beneficial.

Rithik Krisna

This Student-Built Satellite Turns Into a Drone While Landing

This Student-Built Satellite Turns Into a Drone While Landing

Here is something you don’t see every day, a satellite that turns into a drone and guides itself back to the ground, without the help of a parachute. I Build Stuff youtuber recently made this happen for the CanSat competition, and honestly, it is one of those “simple idea, tricky execution” projects that ended up working out surprisingly well.

Christina Paul V
Circuit Digest 07 May 08:02

Adorable Robot Steals the Show

An ongoing refrain with modern movies is “Why is all of this CG?”– sometimes, it seems like practical effects are simultaneously a dying art, while at the same time modern technology lets them rise to new hights. [Davis Dewitt] proves that second statement with his RC movie star “robot” for an upcoming feature film.

The video takes us through the design process, including what it’s like to work with studio concept artists. As for the robot, it’s controlled by an Arduino Nano, lots of servos, and a COTS airplane R/C controller, all powered by li-po batteries. This is inside an artfully weathered and painted 3D printed body. Apparently weathering is important to make the character look like a well-loved ‘good guy’. (Shiny is evil, who knew?) Hats off to [Davis] for replicating that weathering for an identical ‘stunt double’.

Check out the video below for all the deets, or you can watch to see if “The Lightening Code” is coming to a theater near you. If you’re into films, this isn’t the first hack [Davis] has made for the silver screen. If you prefer “real” hacks to props, his Soviet-Era Nixie clock would look great on any desk. Thanks to [Davis] for letting us know about this project via the tips line.

Synaptics and Murata Collaborate to Launch Next-Gen Automotive Wi-Fi and Bluetooth Connectivity Module

Synaptics and Murata Collaborate to Launch Next-Gen Automotive Wi-Fi and Bluetooth Connectivity Module

Synaptics Incorporated and Murata Manufacturing have announced a partnership to jointly develop a turnkey wireless connectivity module designed for automotive Tier 1 suppliers and OEMs. This module will integrate Synaptics’ Veros Wi-Fi and Bluetooth combo systems on chips (SoCs) with Murata’s compact module design expertise.

Vishnu Kumar
Circuit Digest 06 May 13:38