Posts with «arduino hacks» label

Interfacing a Retro Controller using the USBASP

An ISP dongle is a very common piece of equipment on a maker’s bench. However, its potential as a hackable device is generally overlooked. The USBASP has an ATmeg8L at its heart and [Robson] decided that this humble USB device could be used as an interface between his PC and a SNES Joypad.

A SNES controller required three pins to communicate with a host: clock, data and latch. In his hack, [Robson]  connects the controller to the ISP interface using a small DIY adaptor and programs the AVR using the V-USB library. V-USB is a software USB library for small microcontrollers and comes in pretty handy in this instance.

[Robson] does a pretty good job of documenting the entire process of creating the interface which includes the USB HID code as well as the SNES joypad serial protocol. His hack works on both Windows and Linux alike and the code is available on GitHub for download.

Simple implementation like this project are a great starting point for anyone looking to dip their toes in the DIY USB device pool. Veterans may find a complete DIY joystick more up their alley and will be inspired by some plastic techniques as well.

Filed under: Arduino Hacks, hardware
Hack a Day 23 Jun 06:00

Codebender Rises from the Ashes

If you were sad that Codebender had bit the dust, cheer up. A site called codeanywhere has acquired the online Arduino development environment and brought it back to life. In addition to the main Codebender site, the edu and blocks sites are also back on the air.

Not only is this great news, but it also makes sense. The codeanywhere site is a development IDE in the cloud for many different programming languages. The downside? Well, all the people who said they’d be glad to pay to keep Codebender alive will get a chance to put their money where their mouth is.

Here’s an excerpt from Codebender’s blog:

First of all, codebender will mostly remain the same. It will continue to operate as a standalone service, so you don’t have to change the way you are currently using codebender. However, it will transition to a monthly subscription service. This means that you will be able to use it for free for 1 month (as a trial, beginning on June 1st, or for the first month after registration), and it will then cost $10/month to keep using it. This is the price to pay for keeping codebender alive and sustainable, and it’s a small one, really.

Secondly, Codeanywhere intends to keep adding more and more features, the same way we have been adding features, libraries, and board support in the past few years. So you can expect codebender to keep improving with time, much as it did until now.

We have to wonder how many people will pay $120 / year to do something they can do for free. Mbed has support from ARM and offers a free IDE. Maybe a better deal with Codebender would have been with Atmel or Arduino. Not that we are opposed to charging for services, but we imagine a lot of people will just use free tools unless they have a strong use case for using a cloud-based service.

We covered Codebender’s short-lived demise back in October of last year.

Filed under: Arduino Hacks, news
Hack a Day 21 Jun 09:00

Oh No! It’s the Claw Again!

[Ryan Bates] apparently really likes building claw machines. We noticed his latest build with a new PCB, but then we scrolled down and found other incarnations of the machine going back to 2015.

The laser-cut claw is interesting looking and the brains are an Arduino. You can see the action in the video below and there are plenty of older videos on the project page.

Without the PCB, the machine was a mess of wires. With the PCB, a single ribbon cable connects the Arduino to the board, and the board has a layout of screw terminals. This results in a much cleaner layout than before.

You might think you wouldn’t see many homemade claw machines. However, that’s not true. We’ve seen plenty, some of them even using commercial claws. Naturally, some of them also connect to the Internet.

Filed under: Arduino Hacks

USB Charger Fooled into Variable Voltage Source

USB chargers are everywhere and it is the responsibility of every hacker to use this commonly available device to its peak potential. [Septillion] and [Hugatry] have come up with a hack to manipulate a USB charger into becoming a variable voltage source. Their project QC2Control works with chargers that employ Quick Charge 2.0 technology which includes wall warts as well as power banks.

Qualcomm’s Quick Charge is designed to deliver up to 24 watts over a micro USB connector so as to reduce the charging time of compatible devices. It requires both the charger as well as the end device to have compatible power management chips so that they may negotiate voltage limiting cycles.

In their project, [Septillion] and [Hugatry] use a 3.3 V Arduino Pro Mini to talk to the charger in question through a small circuit consisting of a few resistors and diodes. The QC2.0 device outputs voltages of 5 V, 9 V and 12 V when it sees predefined voltage levels transmitted over the D+ and D- lines, set by Arduino and voltage dividers. The code provides function calls to simplify the control of the power supply. The video below shows the hack in action.

Quick Charge has been around for a while and you can dig into the details of the inner workings as well as the design of a compatible power supply from reference designs for the TPS61088 (PDF). The patent (PDF) for the Quick Charge technology has a lot more detail for the curious.

Similar techniques have been used in the past and will prove useful for someone looking for a configurable power supply on the move. This is one for the MacGyver fans.

Filed under: Arduino Hacks, hardware

Disco Flashlight Binary Analog Clock?

As multitools have lots of different functions in one case, so [Shadwan’s] clock design incorporates a multitude of features. He started the design as a binary clock using a Fibonacci spiral for the shape. However, the finished clock has four modes. The original binary clock, an analog clock, a flashlight (all lights on), and a disco mode that strobes multiple lights.

[Shadwan] used Rhino to model the case and then produced it using a laser cutter. The brains are — small wonder — an Arduino. A 3D-printed bracket holds everything together. You can see the result in the video below.

The clock was a school project and used a Neopixel ring. The students had a 16 position ring, which is not enough to do a 24-hour clock so they settled on a 12-hour design. The LED color, however, changes between AM and PM.

The paper included with the design said that research didn’t turn up any other binary clocks using Neopixels. We found that hard to believe, but it might be true. We certainly didn’t find any in our archives, although there are plenty of non-binary clocks out there.

Filed under: Arduino Hacks, clock hacks

Hack Your Hot Air Station

It used to be hot air soldering gear was exotic, but not anymore. There are plenty of relatively inexpensive choices. Many of these appear to be the same despite having different brand names and model numbers. One that is common and inexpensive is the 858D. These run about $50. [Gabse] has one and decided to upgrade it using some open source controller hardware and software. There wasn’t a complete guide, so he created one himself.

According to the original GitHub page, the controller will work with the Youyue-858D and any clones. However, there are others like the Atten 858D that use a different controller. In addition, there have been several variants. [Gabse’s] guide is for the latest version. Information on other versions and brands might be on this discussion board thread.

The new controller and firmware offer better temperature regulation, a safety feature that prevents the handpiece from heating up if power is applied when the handpiece is not docked, fan fault detection, a cold air mode, a sleep mode, and more. There are PCBs available from OSH Park if you want to attempt it yourself. There are also a few YouTube videos showing the custom firmware, one of which appears below.

In addition to the controller change, [Gabse] shows you some optional tweaks to make the handpiece more robust, change the power plug, and make the cradle sensor more reliable. Worthwhile changes and all well-suited for the processing power of the Arduino.

We have gotten used to having the handpiece fixed on the bench, that’s another easy hack. You can also try an unholy union of soldering iron and articulated lamp.

Filed under: Arduino Hacks, tool hacks

Go Big or Go Home: A Tablecloth Touchpad

Phone screens keep getting bigger. Computer screens keep getting bigger. Why not a large trackpad to use as a mouse? [MaddyMaxey] had that thought and with a few components and some sewing skills created a trackpad in a tablecloth.

The electronics in this project are right off the shelf. A Flora board for the brains and 4 capacitive touch boards. If you haven’t seen the Flora, it is a circular-shaped Arduino made for sewing into things. The real interesting part is the construction. If you haven’t worked with conductive fabric and thread, this will be a real eye-opener. [Maddy’s] blog has a lot of information about her explorations into merging fabric and electronics and also covers things like selecting conductive thread.

As an optional feature, [MaddyMaxey] added vibration motors that provide haptic feedback to her touchpad. We were hoping for a video, but there doesn’t seem to be one. The code is just the example program for the capacitive sensor boards, although you can see in a screenshot the additions for the haptic motors.

We’ve covered the Flora before, by the way. You could also make a ridiculously large touch surface using tomography, although the resolution isn’t quite good enough for mouse purposes.

Filed under: Arduino Hacks, wearable hacks

Bitcoin Price Ticker

Are you a Bitcoin miner or trader, but find yourself lacking the compulsive need to check exchange rates like the drug-fuelled daytraders of Wall Street? Fear not – you too can adorn your home or office with a Bitcoin Price Ticker! The post is in Italian but you can read a translated version here.

It’s a straightforward enough build – an Arduino compatible board with an onboard ESP8266 is hooked up with an HD44780-compatible LCD. It’s then a simple matter of scraping the Bitcoin price from the web and displaying it on the LCD. It’s a combination of all the maker staples, tied together with some off-the-shelf libraries – it’s quick, and it works.

What makes the build extra nice is the use of custom characters on the LCD. The HD44780 is a character based display, and this project appears to use a screen with two lines of sixteen characters each. However, a custom character set has been implemented in the display which uses several “characters” on the screen to create a single number. It’s a great way to make the display more legible from a distance, as the numbers are much larger, and the Bitcoin logo has been faithfully recreated as well. It’s small touches like this that can really set a project apart. We’d love to see this expanded to display other financial market information and finished off in a nice case.

If you’re wondering what you can actually do with Bitcoin, check out the exploits of this robotic darknet shopper. Oh, and Microsoft will take them, too.

Filed under: Arduino Hacks
Hack a Day 22 May 06:00

Arduino Cinque – The RISC-V, ESP32, WiFi, Bluetooth Arduino

This weekend at the Bay Area Maker Faire, Arduino in conjunction with SiFive, a fabless provider of the Open Source RISC-V micros, introduced the Arduino Cinque. This is a board running one of the fastest microcontrollers available, and as an added bonus, this board includes Espressif’s ESP32, another wonderchip that features WiFi and Bluetooth alongside a very, very powerful SoC.

Details on the Arduino Cinque are slim at the moment, but from what we’ve seen so far, the Cinque is an impressively powerful board featuring the RISC-V FE310 SoC from SiFive, an ESP32, and an STM32F103. The STM32 appears to be dedicated to providing the board with USB to UART translation, something the first RISC-V compatible Arduino solved with an FTDI chip. Using an FTDI chip is, of course, a questionable design decision when building a capital ‘O’ Open microcontroller platform, and we’re glad SiFive and Arduino found a better solution. It’s unknown if this STM32 can be used alongside the FE310 and ESP32 at this point.

We’ve taken a look at SiFive’s FE310 SoC, and it is an extremely capable chip. It was released first at the HiFive1, and our hands-on testing revealed this is a chip that outperforms the current performance champ of the Arduino world, the Teensy 3.6. Of course, with any new architecture, there will be a few problems porting the vast number of libraries over to the FE310, but SiFive has included an Arduino compatible SDK. It’s promising, and we can’t wait to see SiFive’s work in more boards.

Filed under: Arduino Hacks, news

Pedometer for Calorie Conscious Hamster Owners

The Arduino has inspired many a creative projects that can be beneficial to humanity. The Arduino Hamster Wheel Pedometer by [John Mueller] on the other hand is a creation that is meant for the cute furry rodent pets. When [John Mueller]’s daughter wanted to keep track of her hamster’s night-time strolls, her maker-dad saw it as an opportunity to get her involved in technology. The project consists of a hamster-wheel with a magnet that triggers a reed switch on completing a revolution. The entire assembly is custom-made and [John Mueller] does an excellent job documenting the build with a lot of clear images.

The wheel is affixed to a shaft with a ball bearing at one end and the entire thing is mounted on the side of the cage so that it can be removed with ease for maintenance. The reed switch is embedded in the wooden mounting block such that the connecting cables pass from inside the assembly. This prevents the hamster from coming in contact with the cabling or damaging it in any way. An LCD and the Arduino Uno are placed outside the cage and are used to display the revolutions of the wheel as well as the equivalent miles travelled.

The code for the Arduino is also supplied for anyone who wants to replicate the project and the video below shows the working of the project. The project could also be extended to count calories burned as well as running speed. This project is a prime example of how technology can be used to assist and is similar to the IoT Hamster Wheels that tweets every movement of the Hamster Life.

Filed under: Arduino Hacks
Hack a Day 20 May 12:00