LEAP#221 XOR with Resistor-Transistor Logic
Exclusive OR (XOR) operation is true only when the inputs are different.
An XOR may be constructed using combinatorial logic: an OR ANDed with a NAND. But can it be done with even more basic discrete components?
This circuit uses a diode-bridge and a single transistor - quite neat. It does mean however that there is no output buffer, in fact the output is powered from the inputs. I'm using an Arduino to drive the circuit and capture the output plot.
As always, all notes, schematics and code are in the Little Electronics & Arduino Projects repo on GitHub.
read more and comment..
LEAP#220 Arduino gcc toolchain
The Arduino IDE is the most convenient way to get started with Arduino, but it does obscure the underlying mechanics of building software for an Arduino.
How to do it from scratch? This is my experiement and guide to building software for an Arduino from the command line. I use a Mac and homebrew, so it is somewhat MacOSX-specific.
As always, all notes, schematics and code are in the Little Electronics & Arduino Projects repo on GitHub.
read more and comment..
LEAP#219 DS18S20 1-Wire Reading
Another way to measure temperatures, this time the DS18S20 - an inexpensive 1-Wire digital thermometer with a range of -55°C to +125°C, at ±0.5°C accuracy from -10°C to +85°C.
It comes in TO-92 packaging and may be powered directly (using three pins), or take parasitic power from the data line (using two pins). This makes it ideal for pin-starved microcontrollers that need a decent ambient temperature reading. In this project, I'm just exercising the sensor with a simple Arduino sketch.
As always, all notes, schematics and code are in the Little Electronics & Arduino Projects repo on GitHub.
read more and comment..
LEAP#218 MPU-6050 3-Axes Accelerometer Gyroscope Module
I'm planning to build a controller that needs motion detection, so got hold of an Invensense MPU-6050 3-Axes Accelerometer Gyroscope Module to see if it would do the trick. The module conveniently operates on 3-5V. All I've done so far is a simple sketch to confirm I can read raw values from the MPU-6050 using the Arduino Wire library.
As always, all notes, schematics and code are in the Little Electronics & Arduino Projects repo on GitHub.
read more and comment..