|
arduino IDEArduino
|
|
|
EagleAutodesk
|
|
|
Autodesk Fusion 360Autodesk
|
Mini Arduino with ATTINY85
Do you know the ATTINY85 microcontroller? This article has news and a gift for you. Many people develop projects with few digital inputs/outputs and use the ATMEGA328P microcontroller. But there is a problem: it is expensive, there are many digital pins left, your circuit will be complex and the project board will take up more space.
Today I want to show you a simpler yet powerful solution. I want to introduce you to the ATTINY85 Microcontroller. It is a compact, simple, low cost and low power consumption CHIP.
It is the solution for you who are looking to spend less and create a compact project.
We created a development board to facilitate the construction of your projects.
Its creation was inspired by the circuit of the Digispark circuit board. Below, we present the board that we have developed for you. See Figure 1.
Figure 1 - Mini ATTINY85.
We analyzed the Digispark circuit and introduced some modifications. The purpose is to add new features and functionality to the board.
What will you learn in this article?
- Understand the structure of the ATTINY85 Microcontroller;
- Understand the purpose of each component of the development board circuit with the ATTINY85 Microcontroller;
- How and why it is important to use digital prototyping software to create electronic designs;
- Analyze the main functionalities of the electronic board.
Now, let's introduce the complete project of the Mini Attiny85 Board.
How did the idea to develop the Attiny85 board come about?
The circuit of this board was inspired by the electronic schematic of the DigisPark development board, which uses the ATTINY85 Microcontroller.
Figure 2 shows the Digispark board and its pins.
These are all the features present in the ATTINY85 Microcontroller.
- Digital input and output pins;
- Analog-digital converter;
- PWM;
- I2C;
- IPS;
- External Interrupt.
ATTINY85 is small but powerful for building countless solutions. Next, we will present the electronic schematic of the board and how the circuit works. Shall we travel in electronics?
How does the board circuit work with the Attiny85 Microcontroller?
In the figure below we have the complete schematic of the electronic circuit of our board.
Figure 3 - Electronic Schematic of the ATTINY85 Development Board.
We'll start the discussion with the board's power circuit. See the figure below.
Figure 4 - Electronic Board Voltage Regulator Circuit.
Next, we will explain how this circuit works.
The Arduino ATTINY85 board power circuit
The circuit on the board is designed to be powered with a voltage between 7V and 12V.
This external supply voltage must be applied to the Vin and GND pins.
Note that the input voltage (Vin) will arrive at the 1N4004 diode.
This diode is used to protect the attiny85 microcontroller circuit against reverse polarity of the power supply.
Couldn't understand?
Imagine that you accidentally reversed your power supply terminals. Put GND on Vin and Vin on GND.
Do you agree that this is a polarity reversal of your power supply?
Therefore, this diode will protect the circuit. Remember: the rectifier diode only conducts in one direction. That way, your circuit will not conduct and you will protect it against this failure.
The diode causes a voltage drop of 0.7V in the value of the input voltage Vin). This is because of the characteristics (barrier potential) of the silicon rectifier diode.
The AMS1117-5V voltage regulator
Then this voltage arrives at the input of the AMS1117-5V voltage regulator. Now, I need you to pay attention to this: the ATTINY85 microcontroller operates with a voltage of 5V. That's why we use this regulator. It will offer a regulated voltage of 5V to the CHIP.
The capacitors shown in the circuit are recommended by the AMS1117-5V datasheet.
The 5V voltage is distributed to different parts of the circuit.
Energized board indication circuit
In several equipments we find a circuit with LED to indicate its on/off state. The circuit below has this function.
Figure 5 - Signaling LED circuit.
The LED is activated when the board is powered up. The 330R resistor has the function of limiting the LED current.
Code transfer circuit for the ATTINY85 Microcontroller
The circuit below is responsible for transferring the program code to the ATTINY85 microcontroller.
Figure 6 - ATTINY85 Microcontroller code transfer circuit.
USB has 4 terminals. There are 2 for power supply (VBUS and GND) and 2 for data transfer (D+ and D-). Diodes D1 and D2 are of the Zener type. They limit the voltage of the data lines to 3.6V.
What is the purpose of Diode D4?
Diode D4 is used to ensure the protection of various elements of your circuit. I will explain in more detail.
This diode is to prevent USB transients or overvoltages from damaging the ATTINY85 microcontroller and various other components.
Next, we will talk about the button that was used for two purposes: reset and general purpose.
Reset button and general purpose
In most applications we find a reset button. It is useful when you want to reset the application, in case there is a problem executing the code.
The ATTINY85 microcontroller has few digital pins and it is not interesting to leave it with an exclusive pin for the reset button.
How to make this pin be used as digital and have the possibility to disconnect it from the reset function? For this situation we use a jumper. See the figure below.
Figure 7 - Reset Button Jumper and General Purpose.
The JP4 jumper has the function of connecting and disconnecting the circuit from the button to the RESET pin (PB5). So, you can do two things:
Use the PB5 pin as digital in an application;
Connect a wire to the jumper connection and use the button on another pin as a digital input.
Figure 8 - ATTINY85 Microcontroller Reset Button Circuit.
Next you'll see the printed circuit board layout of the project.
Printed Circuit Board Layout and 3D Prototype
We developed the circuit board layout with the help of Autodesk Eagle Software. Below you can see the result. The length and width of the board is 59×31 cm, respectively.
Figure 9 - ATTINY85 Microcontroller Development Board Layout.
I want you to notice something interesting. On most Arduino boards we have a maximum of 2 to 3 GND pins. This low amount forces the user to make connections between the wires. This often leads to a bad contact problem.
To avoid this, we added extra GND, VCC and Vin pins. In this way, you can easily assemble your connections in a simple and headache-free way.
See the final result of the 3D printed circuit board in the figure below.
Figure 10 - Development Board with ATTINY85 Microcontroller.
Now you can enjoy and win 10 free PCBWay units. Go to the website, create your account and earn right now.
Final Discussions
In the next article we will teach you how to prepare the Arduino ATTINY to receive the code and we will develop an example application.
Mini Arduino with ATTINY85
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(5)
- Likes(4)
- Hamza Deniz Yılmaz Feb 18,2023
- Engineer Dec 27,2022
- Silícios Lab silicioslab Mar 24,2022
- Engineer Mar 20,2022
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Silícios Lab silicioslab
- Electronic Enclosure applied for electronic projects IntroductionWhen designing electronics, the enclosure plays a crucial role that is often overlooked....
- IoT Indoor system with ESP32 to monitor Temperature, Humidity, Pressure, and Air Quality IntroductionAir quality, temperature, humidity and pressure are essential elements to ensure healthy...
- WS2812B RGB LED Controller with ESP8266 via WiFi IntroductionWS2812b addressable RGB LEDs are devices widely used in lighting projects. They are foun...
- Electronic Board for Cutting Electrical Power to Devices and Machines IntroductionAn energy saving system for cutting electrical energy in machines is a fundamental piece...
- PCB Board Home Automation with ESP8266 IntroductionThe incorporation of the ESP8266 module into home automation represents a significant ad...
- Dedicated Control Board for Mobile Robots with Wheels IntroductionFor a long time we developed several prototypes and teaching kits of mobile robots and w...
- Traffic turn signal for bicycles IntroductionDoes every project with electronic logic need a Microcontroller or Arduino to be develop...
- Mini Arduino with ATTINY85 Do you know the ATTINY85 microcontroller? This article has news and a gift for you. Many people deve...
- Christmas Tree The tree used to signal light of Christmas.
- Electronic Enclosure applied for electronic devices IntroductionWhen designing electronics, the enclosure plays a crucial role that is often overlooked....
- Electronic Enclosure for Programmable Logic Controller The housing developed for programmable logic controllers is a practical and efficient solution for t...
- Payment PCB for machines and services IntroductionIn many commercial establishments, hospitals and other places, there are video game equi...
- Relay High Power Printed Circuit Board IntroductionEfficient management of electrical loads is essential for optimizing performance and saf...
- Weather gadget with clock through ESP8266 IntroductionImagine a device that combines technology with an elegant design, bringing functionality...
- ESP32 MPU6050 Monitor IntroductionVarious industrial equipment is essential for the adequate production of products, parts...
- Digital Speedometer for Bicycles IntroductionCycling, increasingly popular both as a recreational activity and as a means of transpor...
- Arduino-based development board with extra features IntroductionArduino is an excellent tool for anyone who wants to develop prototypes. The board has a...
- How to develop low-energy devices powered by batteries? IntroductionIn recent years, there has been a major advance in the area of embedded systems through ...
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
154 1 1 -
-