Chua's Chaos Circuit
Intro: Chua's Chaos Circuit
**Note: This Instructable is based on parts from RadioShack, which is no longer in business. We encourage fellow makers to provide alternatives. This is the RAW Bill of Materials. We have written this academic paper on making the Chua's circuit out of parts from Fry's Electronics.**
This Instructable shows you how to build a chaotic circuit using parts from RadioShack, a widespread hobby electronics store in the USA. The only part RadioShack does not provide is an oscilloscope, but those are expensive anyway. Hence, we'll also show how you can use a USB Audio Adapter or a Desktop soundcard as an oscilloscope (or as we call it, the Poorman's scope).
It allows you to build a Chua's circuit with parts locally accessible in a short period of time without dealing with online shipping.
Chua's circuits are some of the simplest kinds of chaotic circuits. They are considered to be a classic example of true chaos due to their design and output. Using an oscilloscope you can witness a Chua's circuit create the strange attractor known as the double scroll. These beautiful patterns are truly chaotic and can be modeled by relatively simple nonlinear equations.
On top of being a great example of chaos, they are easy to build. These circuits, invented by Leon Chua, also have many real-world uses ranging from research, to music and encryption. In fact, customized circuits can be implemented almost anywhere where real chaos or nonlinear output is necessary.
You'll be able to have a chaotic attractor in the palm of your hands in just one day, be it for a hackathon, class demonstration, research, or personal curiosity.
STEP 1: Go Shopping
p { text-indent: 35.0px; } *.complist tr td { text-indent: 0.0px; height: 35.0px; padding: 0.0px 5.0px; } td.rshack { background-color: rgb(255,255,255); text-align: center; } thead.complist, tfoot.complist { font-weight: bold; background-color: rgb(136,136,136); color: rgb(0,0,0); } tbody.complist { background-color: rgb(204,204,204); color: rgb(34,34,34); } p.note { font-size: 14.0px; font-style: italic; text-indent: 0.0px; } h3 { text-indent: 0.0px; } a.darknodec { text-decoration: none; color: blue; }
RadioShack stores differ from location to location. Some are entirely focused on consumer electronics and have very few items for hobbyists. Know which RadioShacks in your neighborhood actually have component drawers in the back. (Here in Downtown Brooklyn, 457 Fulton Street – Bad, Court St – Good, Atlantic Ave – Better).
Even if your RadioShack does have drawers in the back be prepared to improvise or visit a couple of places. Below are tables, parts, and other equipment-all available at RadioShack-that will allow you to put together and view the output of your Chua’s circuit without fancy equipment.
Basics Components*
# Description Store SKU Qty. 1 Duracell 9-Volt Battery Two Pack * N/A 1 2 9V Snap Connectors (5 PCK)Note*: If you want the raw BOM (Bill-of-Materials) instead of a RadioShack shopping list click here.
Note**: It is my personal recommendation to use brand name 9V batteries such as Duracell. RadioShack has it’s own brand of batteries that gave me trouble in the past.
Note***: We only need two LEDs for this project. They come in two per package under the following SKUs: 276-021, 276-209, 276-022. I recommend the 20 pack because it's a bargain in comparison and the LEDs will fry if you hook them up wrong, hence having extras is always good.
Tools and Materials
# Description Store SKU Qty. i Hookup Wire (22AWG Solid)(not in figure)
(not in figure)
Note*: Best option.
Note**: This project does not require any precision soldering. The simplest/cheapest iron will suffice. I’ll be using my Weller WESD51 Digital Soldering Station.
Oscilloscope/Poorman's Scope
To see the chaotic attractor you need an oscilloscope, and we can make a cheap one with these parts...
# Description Store SKU Qty. A 3 Ft. Stereo Patch Cable, Dual-RCA Plugs to Dual-RCA Plugs*** 1
Note*: You can get the same RCA cables at your local dollar store as well.
Note**: You can get a UCA222 online, however any USB Audio Adapters that has a stereo input will work. Some are sold in music instrument stores such as Sam Ash.
Note***:This resistor is actually in the bag of 500 resistors listed in the first table
STEP 2: Create Breadboard Switch
RadioShack does not have any DPDT (double-pole, double-through) switches that can fit into a breadboard. We'll use panel-mount DPDT switches and solder 22AWG wires to them instead.
- Cut 3 pieces of 1.5" (4cm) red 22AWG wire.
- Cut 3 pieces of 1.5" (4cm) black 22AWG wire.
- Use the wire stripper to strip the tips, and hook the wires to the DPDT switch connectors as shown in the images above. One side is for +9V (red), and the other for -9V (black). Use the pliers to help.
- Solder the wires to the switch connectors as shown in Figures 3 and 4.
Use the wire stripper to strip the ends of the wires to have about 8mm (1/4") exposed. (See Figure 5)
- Plug the switch into the breadboard. Do all the connectors reach into the board? Can you flip the switch without it falling out? (See Figure 1)
You may realize that it is not necessary to solder on all six connectors for the circuit to work, but I strongly recommend doing so for structural integrity.
STEP 3: Assemble -9V GND 9V Source
Here you will put together the circuit that connects the 9V batteries to the rest of the board. We use LEDs to help indicate that the batteries are working and to remind us to turn the switch off when you're done.
Note that you need to use the 220 ohm resistors in series with the LEDs, or else too much current will flow through them and they will burn out.
Follow the the images above which provide a breadboard layout, schematics and pictures of the actual board. Use whichever image your most comfortable with to build the circuit.
Make sure to test that BOTH LEDs turn on. Note that LEDs won't work if you plug them in backwards.
STEP 4: Solder Potentiometers
RadioShack does have 10k potentiometers that you can fit inside a breadboard. We don't use them because it's too hard to tune the chaotic circuit into a chaotic mode with such small potentiometers. We'll use these big ones primarily for dexterity.
Solder long wires on all three leads for both potentiometers. We will only use two leads, but use the third one for structural integrity. We will want the potentiometers to be as steady as possible when we tune them.
STEP 5: Assemble Chaotic Circuit
Now it's time for the bulk of the work. Build the chaotic circuit.
1. Prepare all the components that you need before building the circuit as I did on the white paper in the image above.
To help you find them, here are the resistor values you will need with their color code:
100 ohm x1 R7 BrownBlackBrownGold
1k ohm x2 R8, R9 BrownBlackRedGold
220 ohm x2 R1, R2 RedRedBrownGold
2.2k ohm x2 R3,R11 RedRedRedGold
22k ohm x2 R4,R5 RedRedOrangeGold
3.3k ohm x2 R6,R12 OrangeOrangeRedGold
2. Turn the Switch OFF, make sure the LEDs are not on. Don't build the circuit while the power is connected.
3. Start building the circuit, in the images above your are provided the breadboard layout, schematic and photographs of the circuit.
4. Check that you built the circuit correctly
5. Check that you built the circuit correctly
6. Check that you built the circuit correctly
7. Turn the switch ON.
Check that the LEDs go on as they should.
Feel if the 9V batteries are not too hot.
Feel that the ICs are not too hot.
If the batteries or the IC is hot, you will probably need to replace them.
Next part is to view the chaotic attractor on the screen. If you have an oscilloscope skip to Step 7.
STEP 6: Poorman's Scope
If you have an oscilloscope skip this step.
The Poorman's Scope is a great replacement for an oscilloscope in many situations. The bulk of the work in this step is to make probes that will fit into the RCA slots of the USB Sound Adapter.
The software we use to see the chaotic attractor is called Soundcard Oscilloscope and the latest version can be found here.
1. Grab an RCA cable and snip off the tip of one end.
2. Look inside. As you can see there is a conductive wire in the center, and conductive wire along a circle around it.
The inner conductive wire holds the signal, and the outer is ground. We will access both.
3. Cut the outer casing about 1/2" (1.27cm) along the wire, but not deep. Just deep enough for you to bend the outer casing off. Get the ground conductive strands out of the way, and cut again to get to the strands at the inner core. NOT TOO DEEP, you don't want to cut the strands.
4. Go down another 1/2" (1.27cm) and this time only remove the outer casing. You should now have access to both the inner and outer strands. Make sure they don't touch! Cut the ground strands short enough that they won't touch the bottom of the signal strands.
5. Do this again for the other RCA cable.
6. Connect the green alligator clips to the ground strand. Green is ground by convention!
7. Connect the RCA plug into the INPUT of the USB Soundcard Adapter.
And you're done! You just made a Poorman's Scope.
Making the probe can take a bit of practice. You can get the same RCA cables at a dollar store, and keep cutting till you get it right.
STEP 7: Enjoy Chaos
The videos below explain how to view the circuit output, either in a standard Oscilloscope, or with the Poorman Scope from the previous step.
Oscilloscope:
Connect the circuit to the oscilloscope. If you have a real oscilloscope, just connect the probes to capacitors C1 and C2.
Poorman's Scope:
If your using a Poorman's Scope, connect to C1 and C2 using the alligator clips with a 1Mega ohm resistor in between.
1Mohm resistors are: BrownBlackGreenGold
Tune the potentiometers slowly.
Enjoy!
For more details on Chua's circuits in general check out www.chuacircuits.com
Valentin Siderskiy and Richard Kroon
22 Comments
pfred2 9 years ago
I saved the schematic. I will have to build one of these someday. I have all of the parts kicking around already so that saves me a trip to the Shack.
vsiderskiy 9 years ago
Great! Excited to see the results when your done.
kfjwheeler 3 years ago
Is there any modification I can do to the circuit to make chaotic behavior easier to achieve or more stable?
vsiderskiy 3 years ago
1. You can offset the potentiometer resistance with a resistor, and use a smaller potentiometer to get more dexterity (range per angular position). Or use a multi-turn pot.
2. Stable power supply is very important
3. If you design a PCB it works very well.
Abbas88 3 years ago
Thank you very much for this amazing blog. I made this circuit and its working great!. However, I have a question: How can I see current signal (current through inductor) on oscilloscope?. I am not sure, But maybe we could place a shunt resistor(1ohm) in series with the gyrator circuit and measure the voltage across it?!. or there is a better way to do that ?
Thank you very much,
Abbas
vsiderskiy 3 years ago
http://www.chuacircuits.com/howtobuild3.php
look for the equation:
Z=(VP-Y)/R7
Abbas88 3 years ago
Yes I have been thru that equation. I want to observe the pattern of inductor current and Vc1 and Vc2. For that I would need to see inductor current on the oscilloscope, how can I achieve it?
vsiderskiy 3 years ago
https://www.electronics-tutorial.net/analog-integr...
If you lose chaos, add two voltage followers in between the Chua's circuit and the subtractor circuit to isolate the two circuits.
https://commons.wikimedia.org/wiki/File:Opampvoltagefollower.svg
I know a shunt resistor sounds simple, but it won't work well because this uses a gyrator.
The other way to do this is get a smarter scope. I had one that inverts the signal and adds two signals together giving me VP-Y.
Abbas88 3 years ago
RaviA43 6 years ago
can I know which circuit diagram you have used
vsiderskiy 3 years ago
kfjwheeler 4 years ago
vsiderskiy 3 years ago
cyanocyclohexane 4 years ago
vsiderskiy 3 years ago
kfjwheeler 4 years ago
Abbas88 3 years ago
Abbas88 3 years ago
vsiderskiy 3 years ago
Alla Sidersky 9 years ago
Cool!