Cheap PSoC Enables Electrochemistry Research

You may think electrochemistry sounds like an esoteric field where lab-coated scientists labor away over sophisticated instruments and publish papers that only other electrochemists could love. And you’d be right, but only partially, because electrochemistry touches almost everything in modern life. For proof of that look no further than your nearest pocket, assuming that’s where you keep your smartphone and the electrochemical cell that powers it.

Electrochemistry is the study of the electrical properties of chemical reactions and does indeed need sophisticated instrumentation. That doesn’t mean the instruments have to break the grant budget, though, as [Kyle Lopin] shows with this dead-simple potentiostat built with one chip and one capacitor. A potentiostat controls the voltage on an electrode in an electrochemical cell. Such cells have three electrodes — a working electrode, a reference electrode, and a counter electrode. The flow of electrons between these electrodes and through the solutions under study reveal important properties about the reduction and oxidation states of the reaction. Rather than connect his cell to an expensive potentiostat, [Kyle] used a Cypress programmable system-on-chip development board to do everything. All that’s needed is to plug the PSoC into a USB port for programming, connect the electrodes to GPIO pins, and optionally add a 100 nF capacitor to improve the onboard DAC’s accuracy. The video below covers the whole process, albeit with a barely audible voiceover.

Still not sure about electrochemistry? Check out this 2018 Hackaday Prize entry that uses the electrochemistry of life to bring cell phones back to life.

Continue reading “Cheap PSoC Enables Electrochemistry Research”

Spite, Thrift, and the Virtues of an Affordable Logic Analyzer

[Larry Wall], the father of Perl, lists the three great virtues of all programmers: Laziness, Impatience, and Hubris. After seeing that Saleae jacked up the prices on their popular logic analyzers to ludicrous levels, [CNLohr] added a fourth virtue: Spite. And since his tests with a Cypress FX3 over the last few days may lead to a dirt-cheap DIY logic analyzer, we may soon be able to add another virtue: Thrift.

The story begins a year or two ago when [CNLohr] got a Cypress FX3 development board for $45. The board sat unused for want of a Windows machine, but after seeing our recent article on a minimalist logic analyzer based on an FX2, he started playing with the board to see if it could fan the flames of his Saleae hatred. The FX3 is a neat little chip that has a 100-MHz General Programmable Interface (GPIF) bus that basically lets it act like an easy to use FPGA.

Prepared to spend months on the project, he was surprised to make significant progress on his mission of spiteful thrift within a few days, reading 16 bits off the GPIF at over 200 megabytes per second and dumping it over the USB 3.0 port. [Charles]’ libraries for the FX3 lay the foundation for a lot of cool stuff, from logic analyzers to SDRs and beyond — now someone just has to build them.

The search for a cheap but capable logic analyzer is nothing new, of course. Last year, both [Jenny List] and [Bil Herd] looked at the $22 iCEstick as a potential Saleae beater.

Continue reading “Spite, Thrift, and the Virtues of an Affordable Logic Analyzer”

Logic Analyzer Pushes the Limits of Miniaturization

Careful not to sneeze while using this diminutive logic analyzer — you could send it flying across the bench.

Undertaken more for the challenge than as a practical bench tool, [Uwe Hermann]’s tiny logic analyzer is an object lesson on getting a usable circuit as small as possible. Sure, some sacrifices had to be made; it’s only an eight-channel instrument without any kind of input protection at all, and lacks niceties like an EEPROM. But that allows it to fit on a mere 11 x 11-mm fleck of PCB. That’s a pretty impressive feat of miniaturization, given that the Cypress microcontroller running the show is in QFN package that takes up 64-mm² all by itself. A micro-USB connector takes up much of the back side of the board and allows the analyzer to talk to sigrok, an open-source signal analysis suite.

Everything about the project is totally open, including the PCB files, so you can build your own if you feel up to the challenge. We’d strongly suggest you check out this primer on logic analyzers first, though, especially since it focuses on the capabilities of the sigrok suite.

Hackaday Links: January 25, 2015

Misumi is doing something pretty interesting with their huge catalog of aluminum extrusions, rods, bolts, and nuts. They’re putting up BOMs for 3D printers. If you’ve ever built a printer with instructions you’ve somehow found on the RepRap wiki, you know how much of a pain it is to go through McMaster or Misumi to find the right parts. Right now they have three builds, one with linear guides, one with a linear shaft, and one with V-wheels.

So you’re finally looking at those fancy SLA or powder printers. If you’re printing an objet d’arte like the Stanford bunny or the Utah teapot and don’t want to waste material, you’re obviously going to print a thin shell of material. That thin shell isn’t very strong, so how do you infill it? Spheres, of course. By importing an object into Meshmixer, you can build a 3D honeycomb inside a printed object. Just be sure to put a hole in the bottom to let the extra resin or powder out.

Remember that episode of The Simpsons where Homer invented an automatic hammer? It’s been reinvented using a custom aluminum linkage, a freaking huge battery, and a solenoid. Next up is the makeup shotgun, and a reclining toilet.

[Jan] built a digitally controlled analog synth. We’ve seen a few of his FM synths VA synths built from an LPC-810 ARM chip before, but this is the first one that could reasonably be called an analog synth. He’s using a digital filter based on the Cypress PSoC-4.

The hip thing to do with 3D printers is low-poly Pokemon. I don’t know how it started, it’s just what the kids are doing these days. Those of us who were around for Gen 1 the first time it was released should notice a huge oversight by the entire 3D printing and Pokemon communities when it comes to low-poly Pokemon. I have corrected this oversight. I’ll work on a pure OpenSCAD model (thus ‘made completely out of programming code’) when I’m sufficiently bored.

*cough**bullshit* A camera that can see through walls *cough**bullshit* Seriously, what do you make of this?

Cypress Launches $5 ARM Dev Board

We do love new development boards at Hackaday, and it’s always nice to see companies providing cheap tools for their products. For those needing a cheap ARM solution, Cypress has just released a PSoC based board that’ll cost you less than $5.

There’s two main ICs on the development board. The first is the target: an ARM Cortex M0+ based PSoC 4 MCU. The second is a CY7C65211 USB bridge. This device is communicates with the target’s built in bootloader for flashing code.

The bridge can also be configured to talk UART, GPIO, I2C or SPI.  If you need a USB to serial converter, this part of the board could be worth $5 alone.

The PSoC 4 target happens to be similar to the one our own [Bil Herd] used in his Introduction to PSoC video. If you’re looking to get into PSoC, [Bil] provides a good introduction to what makes these chips unique, and how to get started.

TIQ Probe is More Logical than Most

 

We had [Mark] on our “dance card” for people to find at Maker Faire. But before we could track him down he bumped into us holding the TIQ Probe in one hand and a testing box in the other. TIQ is conceived in the form factor of a traditional logic probe but thanks to the Cypress PSoC 5LP inside it’s much, much smarter than the decades-old bench tools. Sure, it can tell you if that uC pin is a 1 or a 0, but it can also detect what type of signal it’s probing and has built-in protection for over-voltage.

The point of the tool is to bridge the gap between things which would be measured with a DMM and those measured with a proper Oscilloscope. We think he did a pretty good job of including the things that someone just starting out without expensive bench equipment might want. For instance, you can set it to trigger on common data protocols like i2c, and use the probe itself as a rudimentary pulse generator.

The bulk of the details on the probe can be found on its Kickstarter page (which has just a few days left). You may also be interested in his company page. We’re curious about the insides of the test rig he was hauling around. [Mark] is a regular reader so hopefully he’ll leave a comment below with the details of that black box.

freeSoC, for when you need 68 I/O pins

Like many of us, [Jon] began his journey through the magical world of microcontrollers with an Arduino. For a beginner, the Arduino is a wonderful tool, but [Jon] quickly found himself limited by the platform. There are too few pins on the Arduino, and and the platform doesn’t really lend itself to extremely complex projects. To this end, [Jon] designed freeSoC, an Arduino-compatible platform based on the Cypress Semiconductor PSoC 5.

The Cypress PSoC 5 is an extremely capable microcontroller with 60 general purpose I/O pins and 8 special purpose, high current outputs. Every pin on [Jon]’s freeSoC is completely configurable; if you want 24 SPI ports and a dozen 20-bit ADCs, just launch Cypress’ design software and configure the chip graphically. With this many I/O ports, the PSoC 5 is as useful as an FPGA, without all the hassle of actually being and FPGA.

A really neat feature of the freeSoC is its ability to be programmed graphically. Using Cypress’ PSoC Creator IDE, the multitude of I/O pins can be configured to just about anything very easily. Because the PSoC 5 is based on an ARM Cortex-M3, programming the freeSoC is as easy as any one of many ARM dev boards that were recently released.

[Jon] came up with a very, very neat project here, and it’s something we can definitely see the utility of.

Thanks [Dale] for sending this one in.