Hey, smile! 🙂I made a small project with LEDs and a MAX7219 matrix.
You will need mainly:
- Arduino board;
- MAX7219 LED Matrix;
- IR sensor module;
- three LEDs (for traffic lights);
- 5V DC power supply;
- misc parts.
Also, uou will need all kind of basic tools and soldering iron.
The blue board contains an ATMega8AU-TH (but it should work with any ATMega8-AU), I bought several ICs, cheap of course (I don't think I need to advertise the website), the rest of the components are mostly recovered by on scrap boards (except for 22pF capacitors and crystal). Very often I use recovered parts, they are at my fingertips (plus I don't have the opportunity to buy parts too often) and they are free. I used both SMD and THD components.
And the project looks like this:
I designed the board (ATMega8AU) in KiCad, and the realization option was through a more professional way by calling a manufacturer, it came out 2x bigger than a Nano board, but I did it according to my resources, namely the components I have.
This is the schematic:
You can skip that "D2" LED because it is connected to a GPIO.
It took me a while to program the uC, I didn't succeed with a bootloader, but I found another method (thanks God of Internet). I use an AVR USBASP bought a long time ago, and it proved useful just now, which is not bad.
You can see the settings and connections below. In the end, the whole thing is quite fast. I have to mention that I gave up the 1N4148 diode on my board, I'm not sure if it's for this reason or another, but it can't be reset by pressing the push button.
- select de board
- select the programmer
Other components, red MAX7219 matrix for display, and IR sensor that I use as a non-contact switch.
The scheme is simple, it can be determined rather by observing the code, the library used for the MAX7219 matrix is ​​"MaxMatrix.h". The symbols used were created using the generator https://xantorohara.github.io/led-matrix-editor/#1009ebfcfceb0908|1009ebfcfceb0910.
The code is quite rudimentary, I don't know much programming, it's a hobby, it can definitely be improved. It is available in the download section.
The box is 3D printed, using Tinkercad online, I got used to using it. For such projects it is very fine for me. Where did I make it? I turned to a friend who has a 3D printer (I can't afford to buy one) and on the second try I succeeded. The case is custom, according to my resources, modules. Indeed, it is a bit small, but I managed to position everything inside.
What does this project do? We have a phase in which the yellow LED lights up intermittently (it's just a mini traffic light) and the boy waves to us to help him cross the street, and if the IR sensor caught something then it moves to the next phase, we have green and the boy is happy. And a short video
.
References
AVR USB driver: https://zadig.akeo.ie/
How to use the AVR USB programmer: https://www.youtube.com/watch?v=ToKerwRR-70&list=PLT_xFb7a1cCS6954C9E3Q8SskbZ38J2vB&index=5&t=405s&ab_channel=ZeroAmpsElectronics
ATMega8 pinout: link
Comments
Please log in or sign up to comment.