Posts with «featured» label

Take control of your dashboard — the new Arduino IoT Cloud Dashboard with advanced features!

The new dashboard for the Arduino IoT Cloud comes with a host of enhanced features. It allows you to gather and display data from multiple IoT devices in one dashboard, and control those devices as required through your dashboard to fully integrate your solution.

Using widgets to connect to the properties enables you to set up a new dashboard in minutes, and you can fully customize your dashboard by: grouping devices however you like, dragging and dropping to rearrange the layout, and selecting from multiple options to visualize the data.

It is now possible to import historical data into the dashboard to provide a backdated view for all your properties, hence creating a new dashboard  no longer means losing previous information. You can present the information in your dashboard as far back as you’ve been collecting the data.

A new ‘duplicate dashboard” function lets you copy any of your existing dashboards setup and layout, plus you can easily see which things are associated with which devices when setting up a new solution.

It really is that simple!

AAScan is an open source, Arduino-powered 3D scanner that uses your phone

3D scanners are amazing tools that literally let you turn everyday things into three-dimensional computer models. As seen on Reddit, if you want to make one yourself — using little more than a spare Android phone, Arduino, stepper motor, and 3D-printed parts — the AAScan setup by QLRO could be an excellent option.

The device spins an object on a 3D-printed turntable using an Uno and ULN2003 driver board, allowing it to take ~180 images automatically via a Python script running on the phone. These images are then combined in Meshroom to create a brand new 3D model. 

You can check out a demo of AAScan in the video below, rotating an apple to take pictures of each side.

A DIY digital readout for your wood lathe

Small wood lathes don’t typically come with an RPM readout, so after obtaining such a machine several months ago, engineer Zach — also known as ‘byte sized’ — decided to build his own custom display.

The device uses an Arduino Nano for control, along with a Hall effect sensor to pick up on four magnets attached to the spinning handwheel.

RPM values are shown on a series of four 7-segment displays, and everything is enclosed in a nicely 3D-printed housing. LEDs shine through a sanded acrylic window that acts as a diffuser. Power for the lathe is still provided by a single cable, with a transformer module used to convert the AC input into 5V DC for the Arduino and other electronics.

Arduino Blog 15 Feb 21:24

arduino-cli 0.8.0 is here!

Our dev team is grateful for the high quality contributions that the project is receiving, and is working hard to collect all the lovely feedback we have received to shape the Arduino CLI into the best tool possible for the community!

Highlights of our latest release include:

  • Resource usage improvements
  • Better libraries handling
  • Bug fixing

You can see the full list of changes here.

This retro-looking rotary cellphone is free of modern-day distractions

What we carry today in our pockets is nominally called a “phone,” but more often than not we’re using it to do various other computing tasks. Justine Haupt, however, wanted an actual phone that “goes as far from having a touchscreen as [she could] imagine.”

What she came up with is a rotary cellphone that’s not just a show-and-tell piece, but is intended to be her primary mobile device. It’s reasonably portable, has a removable antenna for excellent reception, a 10-increment signal meter, and, perhaps most importantly, doesn’t make her go through a bunch of menus to actually use it as a phone. Other features include number storage for those she calls most often and a curved ePaper display that naturally doesn’t use any power when revealing a fixed message.

The project was prototyped using an Arduino Micro. It was then laid out of a PCB with an an Adafruit FONA 3G board and an ATmega2560V, programmed in the Arduino IDE.

Haupt has published a detailed look at the build process here.

This joystick-controlled machine draws light trails using a laser

Lasers are awesome. Glow-in-the-dark surfaces are, too. As seen here, Justin and Brett were able to combine the two into an excellent drawing machine. 

Their device uses a pair of gearmotors under Arduino control to actuate a rack-and-pinion gantry system over a canvas painted with phosphorescent powder. A laser is mounted at the end of this setup, which traces luminescent patterns on the surface as it moves. 

User interface is via a simple joystick arrangement, with a housing 3D-printed in PLA that’s reminiscent of a Nintendo Wii Nunchuk. 

Check out the demo in the video below and read more about the project in the duo’s write-up.

Save the date: Arduino Day 2020 is Saturday, March 21st!

It’s Arduino’s 15th birthday! We are inviting the whole community to join Arduino Day 2020 on Saturday, March 21st.

Arduino Day is a 24-hour-long celebration around the globe, organized by the community for the community — where those interested in Arduino get together, share their experiences, and learn more about the platform. Participation is open to anyone, either as an organizer or participant, from makers and students to professional developers and educators. 

In 2019, we had a record 659 events held in more than a 100 countries — full of activities, workshops, talks, and project exhibitions for a wide range of audiences and skill sets. 

If you would like to organize an event, please fill out this online form and submit your proposal by March 6th. 

Let’s join together and make 2020 another record-breaking year! 

Over the next few weeks, make sure to visit the Arduino Day website to learn more or locate an event in your area. Moreover, don’t forget to spread the word on social media using the hashtag #ArduinoD20! 

For more information, please visit day.arduino.cc.

OmBURo is an Arduino-controlled unicycle robot with an active omnidirectional wheel

Omni wheels normally contain a number of rollers arranged on their circumference, allowing them to slide left and right and perform various tricks when combined with others. The rollers on UCLA researchers Junjie Shen and Dennis Hong’s OmBURo, however, are quite different in that they are actually powered, enabling a single wheel to accomplish some impressive feats on its own.

These powered rollers give OmBURo the ability to move in both longitudinal and lateral directions simultaneously, balancing as a dual-axis wheeled inverted pendulum. 

Control is accomplished via an Arduino Mega along with an IMU and encoders for its two servo motors —one tasked with driving the wheel backwards and forwards, the second for actuating the rollers laterally via helical gears and a flexible shaft. 

As seen in the video below, the robot can follow different paths via remote control, and even balance on an inclined plane. More informaton on the impressive build is available in the Shen and Hong’s research paper here.

A mobility mechanism for robots to be used in tight spaces shared with people requires it to have a small footprint, to move omnidirectionally, as well as to be highly maneuverable. However, currently there exist few such mobility mechanisms that satisfy all these conditions well. Here we introduce Omnidirectional Balancing Unicycle Robot (OmBURo), a novel unicycle robot with active omnidirectional wheel. The effect is that the unicycle robot can drive in both longitudinal and lateral directions simultaneously. Thus, it can dynamically balance itself based on the principle of dual-axis wheeled inverted pendulum. This letter discloses the early development of this novel unicycle robot involving the overall design, modeling, and control, as well as presents some preliminary results including station keeping and path following. With its very compact structure and agile mobility, it might be the ideal locomotion mechanism for robots to be used in human environments in the future.

How To Hack A Portable Bluetooth Speaker By Skipping The Bluetooth

Portable Bluetooth speakers have joined the club of ubiquitous personal electronics. What was once an expensive luxury is now widely accessible thanks to a prolific landscape of manufacturers mass producing speakers to fit every taste and budget. Some have even become branded promotional giveaway items. As a consequence, nowadays it’s not unusual to have a small collection of them, a fertile field for hacking.

But many surplus speakers are put on a shelf for “do something with it later” only to collect dust. Our main obstacle is a side effect of market diversity: with so many different speakers, a hack posted for one speaker wouldn’t apply to another. Some speakers are amenable to custom firmware, but only a small minority have attracted a software development community. It doesn’t help that most Bluetooth audio modules are opaque, their development toolchains difficult to obtain.

So what if we just take advantage of the best parts of these speakers: great audio fidelity, portability, and the polished look of a consumer good, to serves as the host for our own audio-based hacks. Let’s throw the Bluetooth overboard but embrace all those other things. Now hacking these boxes just requires a change of mindset and a little detective work. I’ll show you how to drop an Arduino into a cheap speaker as the blueprint for your own audio adventures.

Directing the Hacker Mindset at Myriad Bluetooth Speakers

There’s way too many different speakers out there for one hack to rule them all. But by changing our Bluetooth speaker mindset from “it’s a reprogrammable computer” to “it’s an integrated collection of useful electronic components”, we turn market diversity into our ally.

Look at this from the perspective of Bluetooth speaker manufacturers: they want their Bluetooth speaker to stand out from competitors, and the most obvious way is in their selection of loudspeaker drivers. Surprising the customer with big sound from a little box is key for success, so each product can offer a unique combination for driving the audio, all housed inside an eye-catching enclosure that lets consumers tell one portable Bluetooth speaker from another.

Tailoring for loudspeaker selection has cascading effects through the rest of the system. For best sound, they will need matching audio amplifier modules, which will have their own power requirements, which dictates battery performance, and so on. Catering to these desires, components are excluded from the tightly integrated mystery black boxes. Fortunately for hardware hackers, such an architecture also makes components easy to reuse:

  1. A rechargeable battery.
  2. Ability to charge that battery from USB.
  3. A low-power standby mode to monitor press of the power button.
  4. Protecting battery from over-discharge.
  5. A voltage regulator supplying battery power to the device.
  6. An audio line-in jack.
  7. Volume up/down control.
  8. Amplifier and driver.

All of these are useful for projects, already neatly packaged in a mass-produced enclosure.

Putting Theory Into Practice With An Example

Now that we have a general background, let’s apply this concept to a specific example. But before we begin, an obligatory note in case it is not obvious to any beginners reading this: This activity very definitely voids the warranty (do it, it’s worth it!), and modern portable electronics use lithium chemistry batteries that can be dangerous if mistreated.

The Bluetooth speaker used in this example is a “Rugged Portable Bluetooth Speaker” sold by North American electronics retailer Best Buy under one of their house brands. A search of its FCC ID pointed to Lightcomm Technology Co. as the manufacturer. The “rugged” claim starts with a layer of soft rubber wrapped around its exterior. That plus reinforcements inside the case allows the speaker to absorb some level of abuse. I wanted to preserve this shock absorbing exterior and, thankfully, it was easy to open non-destructively. Even more care would be needed if it was a waterproof speaker (this one wasn’t) and moisture barriers need to be preserved. Alternatively, if the plan is to transfer the internals to another enclosure, the condition of the original box would not matter.

Once the circuit board has been extracted, the Bluetooth interface module should immediately stand out as the most sophisticated component sitting close to an antenna. A search for ATS2823 confirmed it is a module designed and sold for integration into Bluetooth audio products. Its MIPS M4K core and associated flash storage could be a promising start for firmware hacking, but the point of this example is to demonstrate how to hack a speaker utilizing existing firmware. So we will leave the module as-is.

Solder to the External Audio Input

The easiest way to pipe audio into this system is to pretend to be an external audio source. We want the system to believe we are connected via an audio cable plugged into the line-in jack, but for compactness we’d prefer to do this without using an actual cord. This approach is easy, nondestructive, and preserves the existing volume control mechanism. There are a lot of different ways to implement an audio jack, so some exploration with a multimeter will be required. We need to find the standardized contacts for: audio input left channel, right channel, and ground. (Wikipedia reference: “Phone connector (audio)“)

It’ll be a little tricker to decipher the plug detection scheme, as it is not standardized. In this particular example, there is a fourth pin that floats in the absence of an audio plug. When an audio plug is present, the pin is grounded. Soldering a wire to always ground that detection pin will keep this speaker constantly in “playing external audio” mode.

Or Connect To Amplifier Directly

An alternative approach is to bypass existing input and volume control, sending audio directly to the amplifier chip. To find this chip, we start with the voice coil wires and backtrack. It’ll likely be the largest component near those voice coil wires. Once the amplifier chip is found, consult the datasheet to find the input pins to cut free from the circuit and rewire for audio input that bypasses existing control.

But even if we wish to maintain existing volume control, it is still useful to locate the audio amplifier chip. It is the most power-hungry component on the circuit board, and peak power requirements for the system are dictated by the amount of power this amplifier will draw when playing loudly. Therefore it is half the puzzle of calculating our available power. This particular Bluetooth device uses a Mixinno MIX2052 chip sitting adjacent to the voice coil wire connector, with a peak power of 6 watts.

Tap Into Power Supply

The other half of the puzzle is the voltage regulator delivering power to the amplifier chip. Similar to how we look for our amplifier near our voice coil wires, we can look for our regulator sitting near inductors, capacitors, and diodes. Once the power module is found, read its data sheet to determine peak power output.

The power budget for our hack would be constrained by power figures for those two components. Most microcontrollers consume maximum power during bootup. So as long as the audio source stays quiet during this time, we would have a little extra power to support boot. Somewhere between the regulator and the amplifier is also the best place to tap power. It allows us to piggyback on the existing power management circuit that shuts down the amplifier when entering low power mode, cutting power to our hack at the same time.

In the case of this board, there was one prominent coil and a Techcode TD8208 step-up regulator was found next to it. Configured to deliver 5 volts, this regulator can deliver 1A and tolerate brief spikes not to exceed 2A. This wouldn’t be enough to feed a Raspberry Pi 4, but plenty for an Arduino Nano.

Repurpose Control Button

So far functionality for three of the four buttons on this speaker has been preserved: power, volume up, and volume down. The fourth button initiates Bluetooth pairing, or to pick up a phone call. We’re cutting BT out of the equation so this is no longer useful and can be repurposed.

On this speaker, SW4 is normally open and pulls to ground when pressed, making it trivial to reuse. I cut the trace leading to the Bluetooth interface module and soldered a wire so the switch now pulls an Arduino pin to ground when pressed.

Tuck Everything Back In

A few pieces of internal plastic reinforcements for ruggedness were cut away to create enough volume for an Arduino Nano inside this enclosure. It is no longer quite as rugged, but now it is far more interesting as a platform for sound hacks. To conclude this proof of concept, the Arduino Nano is using the Mozzi audio library to play the classic Wilhelm scream whenever our repurposed button is pressed.

 

Build Your Own Bleepy Bloopy Buzzy Box

Bluetooth used to be the novelty. With plenty of hacks adding Bluetooth to existing audio equipment, playing Bluetooth audio out of one, or building our own Bluetooth speakers from scratch. But now Bluetooth speakers are ubiquitous, we’re approaching the point where Bluetooth is not necessarily the center of attention. Skipping the Bluetooth in a portable Bluetooth speaker gives us a new platform for our noise maker hacks. Something small, fun, and easy to bring to our next hacker show-and-tell meetup!

This Arduino device turns on a workshop’s air filtration system whenever it hears a saw

Modern woodworking tools are amazing, allowing you to make any number of useful or decorative objects from the comfort of your garage. Unfortunately, they also produce a lot of dust, so YouTuber “Atomic Dairy” came up with the idea to install an air purifier that can cleanse the shop air eight times per hour. This only works if turned on, so he automated its operation with an Arduino Uno and a solid-state relay (SSR).

The AudioBot system uses a microphone to listen for loud noise, indicating that a saw is on and thus dust creation. When detected, the Arduino then signals the SSR to run for two hours to literally clear the air. 

There’s also a start button and RF control unit to trigger the fan for an hour or add an hour to the current run time, which is displayed on a small LCD screen. A stop button cuts off the filter immediately when needed.

Our Fanboy wood shop air filter is an overpowered air cleaner that we run whenever we are cutting or sanding wood projects in the shop, which is often. The AudioBot is an Arduino device that turns the Fanboy on whenever it hears us using a large tool like a table saw or miter saw. That’s right, it works by sound! This relieves us of the tedious task of plugging in the Fanboy when we work and remembering to unplug it a couple hours after we finish in the shop.

Could we just have bought a timer to use with the Fanboy? Yes. But it wouldn’t be sound activated and wouldn’t have all of the cool LEDs we have on the AudioBot. Plus the AudioBot only cost around $30 and it was REALLY fun to build. So in our shop the AudioBot is better than any commercial timer we could have gotten. 

Arduino Blog 03 Feb 16:26
arduino  featured  uno