Posts | Comments

Planet Arduino

Archive for the ‘wireless’ Category

Historically, there have been a few cases of useful wireless power transmission over great distances, like a team at MIT that was able to light up a 60 W bulb at several meters, and of course Nikola Tesla had grand dreams of drawing energy from the atmosphere. But for most of us wireless power is limited to small, short-range devices like cellphone chargers. While it’s not a lot of work to plug in a phone when it needs a charge, even this small task can be automated.

This build begins with a 3D printed cradle for the smartphone to sit in. When the device detects that the phone has been placed in the cradle, it uses a linear actuator to drive a custom-built charging cable into the phone’s USB port. Similarly, when the phone is lifted from the cradle the cable is automatically removed. It appears that there is some play in the phone’s position that lets the charger be plugged in smoothly, and the project’s creator [Larpushka] points out that the linear actuator is not particularly strong so we don’t imagine the risk of damage is very high.

While wireless charging still may have the edge when it comes to keeping debris out of the port, we still really enjoy a project like this that seems to be done for its own sake. There are some improvements that [Larpushka] plans to make, but for now we’re delighted by this build. For anyone looking to add true wireless charging to any phone that doesn’t have it, though, it’s not too difficult to accomplish either.

[Larry Bank]’s Arduino library to print text and graphics on BLE (Bluetooth Low Energy) thermal printers has some excellent features, and makes sending wireless print jobs to a number of common models about as easy as can be. These printers are small, inexpensive, and wireless. That’s a great mix that makes them attractive for projects that would benefit from printing out a hardcopy.

It’s not limited to simple default text, either. Fancier output can be done using Adafruit_GFX library-style fonts and options, which sends the formatted text as graphics. You can read all about what the library can do in this succinct list of concise functions.

But [Larry] hasn’t stopped there. While experimenting with microcontrollers and BLE thermal printers, he also wanted to explore talking to these printers from his Mac using BLE directly. Print2BLE is a MacOS application that allows dragging image files into the application’s window, and if the preview looks good, the print button makes it come out of the printer as a 1-bpp dithered image.

Small thermal printers make for neat projects, like this retrofitted Polaroid camera, and now that these little printers are both wireless and economical, things can only get easier with the help of a library like this. Of course, if that’s all starting to look a little too easy, one can always put the thermal back in thermal printing by using plasma, instead.

We have very big plans for Arduino Cloud this year, which took a major leap forward with the recent name change. But that’s not all we’re working on. We’ve already got some exciting new features to bring to you, including a watchdog timer that keeps your hardware ticking.

WiFi Module Firmware Update

First of all, we’re updating the WiFi module firmware on Arduino Cloud-compatible boards. It’ll be moving to a newer version (1.4.4), as well as the library used to connect devices to Arduino Cloud. 

These measures will significantly reduce memory footprint on SAMD. The primary benefit of which is allowing for larger user sketches than was previously possible.

Just follow the process below to update your boards to the latest WiFi firmware.

How to Update Your Firmware

  • The WiFi module firmware is updated automatically when uploading a new sketch from Web Editor or Arduino Cloud interface. So you don’t need to take any action to do this.
  • If you want to manually apply a firmware update, go to “Devices” and select your device. Look for “NINA firmware” in device properties. If the device firmware is older than 1.4.4, an update button will be available. Please remember that if you update firmware this way, you’ll have to re-upload your sketch when it’s complete.

Watchdog Function

This release of the Arduino Cloud IoT library also adds watchdog functionality. It’s intended for all ATSAMD21G18-based cloud-connected boards such as MKR boards and Nano 33 IoT.

The watchdog is essentially an electronic timer, counting down from a preset value. When it hits zero, the watchdog triggers a reset of the microcontroller. The timer is periodically reset to its starting value at the beginning of the loop() function, which means the software is running smoothly.

Should something on your Arduino board crash, the starting value doesn’t get reset and the watchdog eventually restarts it. This will save you a lot of time as it helps to automatically recover from temporary hardware faults or unrecoverable software errors whenever you have an unattended or remote device. Watchdog enabled by default, but can easily be disabled, should you wish to.

You can read more about the new watchdog functionality here. Come and join us on the forum to let us know how the new features are working out for you.

The post More Memory and New Watchdog Features for Arduino Cloud Library appeared first on Arduino Blog.

There’s a brand new device-to-device communication feature available now in the Arduino IoT Cloud. It’s something we’ve been working on for a long time. So we’re excited to see how it’ll add a whole new connected dimension to your Arduino projects.

Arduino IoT Cloud thing to thing communication

What is “Device-to-Device”? Communication?

Internally we’ve been looking at this feature as “device-to-device” communication. It will allow your Arduino devices to send wireless messages to each other, without writing a single line of code or spending time with radio modules and network protocols.

Using this feature you can link variables of the same data type between two or more cloud-enabled devices. For example, one button could set three smart bulbs to the same color. Or you could turn on a heater when temperature sensors in your room or outside in your weather station drop below a certain level. Being able to sync variables gives you an intelligent way to control multiple devices very easily.

Whether you use an Oplà IoT Kit, a MKR WiFi 1010, a Nano 33 IoT or an (upcoming!) Nano RP2040 Connect, you can configure everything from the web interface. After configuration, any changes you make to variables on one device will be reflected promptly on the other(s). This creates a seamless, powerful and secure two-way communication with almost no effort on your part, and no code required. The Arduino IoT Cloud handles authentication, security, network disruptions and any other tricky parts. 

What Does This Mean For Your Projects and Devices?

It means there are lots of options with thing-to-thing communication (also known as variable synchronization):

  • Collect sensor readings from remote devices.
  • Actuate devices remotely. For instance, pressing a button on one Arduino turns on an LED or motor on another.
  • Create a distributed algorithm where multiple devices collaborate with each other.

Are you thinking about home automation? Interactive installations? Monitoring and controlling machines from a wireless panel? This powerful new feature makes all those things easy to achieve for makers of all abilities.

Arduino Cloud thing to thing dashboard.

Combined with IoT Cloud’s dashboards this delivers a powerful new way to build incredible automations with minimal (if any) changes. Furthermore, it gives you smartphone control of your connected boards via the existing Arduino IoT Remote iOS and Android apps.

If you want to be one of the first to try it out, grab an Arduino IoT Cloud subscription. After that, just make sure you’re signed up to the Arduino newsletter to hear about other new features.

The post It’s easier than ever to add two-way communication to Arduino devices appeared first on Arduino Blog.

dropController has the kind of documentation we wish would spontaneously generate itself whenever we build something. [Martyn Currey] built a robust rig for water droplet photography, and we don’t want to dismiss the hardware, but the most impressive part might be the website. It might not be very fancy, but it’s thorough and logically organized. You can find parts lists, assembly manuals, tutorials, sketches, and schematics. If only all the projects that came our way were so well detailed.

Water droplet photography is pretty cool, although freehanding it will make your patience fall faster than 9.81 m/s². The concept is that a solenoid valve will flicker open to release a drop of water, wait for a certain number of microseconds, and then trigger your DSLR via a wired remote cable. The tricky part comes from controlling as many as six valves and three flashes. We don’t have enough fingers and toes to press all those buttons.

The bill of materials contains many commonly available parts like an Arduino Nano, an LM2596 voltage regulator, some MOSFETS, an HC-06 Bluetooth module, plus standard audio connectors to hook everything up. Nothing should break the bank, but if money is not an issue, [Martyn] sells kits and complete units.

Waterdrop controllers are not the newest kids on the block, and strobe photography is a time-honored tradition.

All pictures credits are to [Martyn Currey].

If you ride a bike, you probably share the road with a lot of cars. Unfortunately, they don’t always share the road very well with you. [Mech Tools] took a helmet, a few Arduinos, and some wireless transceivers and made headgear that shows when you stop and also shows turn signals. We were a little surprised, though, that the bike in question looks like a motorcycle. In most countries, motorcycle helmets meet strict safety standards and modifying them is probably not a good idea. However, it wasn’t exactly clear how the extra gear attached to the helmet, so it is hard to say if the project is very practical or not.

In particular, it looks as though the first version had the electronics just stuck to the outside of the helmet. The final one had things mounted internally and almost certainly had cuts or holes made for the lights. We aren’t sure which of those would be more likely to be a problem in the case of an accident.

However, as a concept, we liked the idea. It made us wonder if you could do the same thing to something a little less critical like a motorcycle jacket. After all, we’ve seen a lot of wearable gear lately.

We’ve seen similar projects before. Of course, it is probably safer and easier to add lights to the bike itself.

 

 

[Dave Akerman]’s interest in high-altitude projects means he is no stranger to long-range wireless communications, for which LoRa is amazingly useful. LoRa is a method of transmitting at relatively low data rates with low power over long distances.

Despite LoRa’s long range, sometimes the transmissions of a device (like a balloon’s landed payload) cannot be received directly because it is too far away, or hidden behind buildings and geography. In these cases a useful solution is [Dave]’s self-contained LoRa repeater. The repeater hardware is simple, and [Dave] says that if one has the parts on hand, it can be built in about an hour.

The device simply re-transmits any telemetry packets it receives, and all that takes is an Arduino Mini Pro and a small LoRa module. A tiny DC-DC converter, battery, and battery charger rounds out the bill of materials to create a small and self-contained unit that can be raised up on a mast, flown on a kite, or carried by a drone.

The repeater’s frequency and other settings can even be reprogrammed (using a small windows program) for maximum flexibility, making the little device invaluable when going hunting for landed payloads like the one [Dave] used to re-create a famous NASA image using a plastic model and a high-altitude balloon. Check out the details on the GitHub repository for the project and start mashing “add to cart” for parts at your favorite reseller.

We’ve seen [Johan]’s AA-battery-sized Arduino/battery crossover before, but soon (we hope!) there will be a new version with more MIPS in the same unique form factor! The original Aarduino adhered to classic Arduino part choices and was designed to run as the third “cell” in a 3 cell battery holder to relay temperature readings via a HopeRF RFM69CW. But as [Johan] noticed, it turns out that ARM development tools are cheap now. In some cases very cheap and very open source. So why not update an outstanding design to something with a little more horsepower?

The Aarduino Zero uses the same big PTH battery terminals and follows the same pattern as the original design; the user sticks it in a battery holder for power and it uses an RFM69CW for wireless communication. But now the core is an STM32L052, a neat low power Cortex-M0+ with a little EEPROM onboard. [Johan] has also added a medium size serial flash to facilitate offline data logging or OTA firmware update. Plus there’s a slick new test fixture to go along with it all.

So how do you get one? Well… that’s the rub. It looks like when this was originally posted at the end of 2017 [Johan] was planning to launch a Crowd Supply campaign that hasn’t quite materialized yet. Until that launches the software sources for the Zero are available, and there are always the sources from the original Aarduino to check out.

If you want to wirelessly communicate between devices, WiFi and Bluetooth are obvious choices. But there’s also the ISM (industrial, scientific, and medical) band that you use. There are inexpensive modules like the SX1278 that can handle this for you using LoRa modulation, but they haven’t been handy to use with an Arduino. [Jan] noticed the same thing and set out to build a shield that allowed an Arduino to communicate using LoRa. You can find the design data on GitHub. [Jan] calls it the LoRenz shield.

According to [Jan], the boards cost about $20 to $30 each to make, and most of that cost was in having PC boards shipped. LoRa lets you trade data rate for bandwidth, but typical data rates are fairly modest. As for range, that depends on a lot of factors, too, but we’ve seen ranges quoted in terms of miles.

Depending on where you live, there may be legal restrictions on how you use a radio like the SX1278. You should understand your local laws before you buy into using the ISM bands. We aren’t sure it would be wise, but the board can coexist with three other similar shields. So you could get 4 radios going on one Arduino if you had too and could manage the power, RF, and other issues involved. The breakout board the module uses has an antenna connector, so depending on your local laws, you could get a good bit of range out of one of these.

[Jan] promises a post on the library that makes it all work shortly, but you can find the code on GitHub now. If you look at the code in the examples directory, it seems pretty easy. You’d have to sling some software, but the SX1278 can support other modes in addition to LoRA including FSK and other data modulation techniques.

We’ve seen other LoRa shields, but not many. If you are interested in other wireless technologies, we’ve talked about them quite a bit. If you want a basic introduction to LoRa, [Andreas Spiess’] video below is a good place to start.


Filed under: Arduino Hacks, wireless hacks

A good robot is always welcome around here at Hackaday, and Hackaday.io user [igorfonseca83]’browser-controlled ‘bot s is no exception. Felines beware.

[igorfonseca83] — building on another project he’s involved in — used simple materials for the robot itself, but you could use just about anything. His goal for this build was to maximize accessibility in terms of components and construction using common tools.

An Arduino Uno gets two D/C motors a-driving using an H-bridge circuit — granting independent control the wheels — an ESP8266 enabling WiFi access, with power provided by a simple 5V USB power bank. [igorfonseca83] is using an Android smartphone to transmit audio and video data; though this was mostly for convenience on his part, a Raspberry Pi and camera module combo as another great option!

A few workarounds notwithstanding — considering some components in this particular configuration do not directly connect to each other — a bunch of code, set up of a website to act as a controller that accesses the IP address of the ESP8266, and an app installed on the audio/video streaming smartphone later, and you have a cat-stalking robot ready to rock. There are, of course, other uses for fpv robots, but with arguably less entertaining results.

[via Hackaday.io and Instructables]


Filed under: Android Hacks, Arduino Hacks, robots hacks


  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook