New and analytical portal "Electronics Hour".

submit / Golovna

Additional functionality
Competition for radio amateurs

"My radio amateur design" The scheme is security software

a simple USB thermometer on an ATmega8 microcontroller, which you can make with your own hands and a radio amplifier.
Competition design of a radio amplifier:

"USB thermometer on ATmega8 microcontroller"
Hello dear friends and guests of the site!
I am submitting a competition work to a friend for your consideration. Author of the design –.

Grigor'ev Illya Sergiyovich

USB thermometer on ATmega8 microcontroller
Good day everyone!
I wanted to get a thermometer in order to know the temperature both at home and outside.

The side in me is sleepy and the extreme thermometer is already breaking, heating up.

Having started using the Internet.
Like in the first place there are so many unnecessary, necessary, expensive things.
Come on, I know the scheme to the core, after which I started using the USB thermometer.
Well, axle diagram:
For folding we need:
♦ MS Atmega 8 and a bed for her for 28 days
♦ Temperature sensor DS18B20
♦ Resistors (less than 0.5W):
- 10k
- 4.7 to
- 68ohm * 2pcs
- 1.5k
- 200ohm
♦ Conderi
- 22pF *2pcs
- 100uF at 16V electrolyte

♦ 2 zener diodes at 3.6V
♦ Quartz resonator 12MHz


♦ LED

♦ One-sided textolite sheet 5*5cm


We start everything with markings on the textolite, then we check


Before speaking, I used to suffer for a long time from cutting out the necessary materials with a stationery knife, it was a long time, tedious... I recently washed cutting diamond circles on ebay for drying.


In a second... it’s done and cut!


10 pieces of axle like this 100 rubles (for the search - 10X 20mm Emery Diamond Coated Double Side Cutting Discs with 2 Joint Lever).


Then, another diagram on the magazine, then heated with a sander, then we see:


Then we rub, wipe off the toner, firmly:

And then we begin to collect:
Atmega 8-16PU in the thigh:


We lift the board from the flux, because

I'm vikorystuvuv active and even more vigilant:



We go to the device manager, find an unknown device and update the firewood.
At the time of installation, a window will appear where you can select – “Install this driver anyway”
After this, a new device will appear in the device manager:


And the LED is still blinking randomly.
This means that I will install the robot correctly!

Next, we launch a program to adjust the temperature.

If the error message “unable to write to C:/temp/USBThermometer_config.ini” appears again, then go to the disk, including all folders visible, including the temp folder, then create a notepad there, called USBThermometer_config and change the extension to .ini .
If there are no folders, then we’ll create them first.


After whose mercy I knew.


Once the folder has been created, then so that it doesn’t matter, you can grab it.

The program is simple and understandable.

  1. Mainly:
  2. You can use mini-window as a gadget:
  3. That's all.
  4. I spent quite a few pennies on everything!
  5. The sensor is around 90 rubles and maybe all the debris in me is already there.
  6. Now I have a home electronic thermometer due to the possibility of varying the temperature in my home and on the street.
  7. This is a microcontroller, called ATmega8.
  8. Digital temperature sensor: DS18B20, which can vary temperatures from -55 to +125 degrees Celsius.
  9. Here is a list of everything needed for a thermometer:

Microcontroller ATmega8 (even without the L index, for example).

The scheme is very simple. All 4 USB contacts have been removed. Capacitor C3 is the very same condenser.

Zener diodes VD1 and VD2 reduce the voltage on the data line to 3.3V. The DS18B20 sensor can not be placed on the board, but can be placed at the required location, the range can be up to 100 meters, otherwise I will not accept more than 50 m. The LED changes its state (turns on/off) when the skin temperature starts to change. If the light is shining with chaotic fluidity, then the temperature sensor is working normally, if it is constantly lit or there is no problem with the sensor (incorrect connections, non-functional, or too long wire, without any strong tromagnetic disturbances). On the right there are connectors for internal circuit programming of the microcontroller. Firmware for new - USBThermometerMCUUSB_thermometerdefaultmain.hex

.

After uploading the firmware, you need to install the fuses correctly, otherwise the device will not work. In STK500 with AVR Studio it looks like this:

If you have correctly selected the device and correctly flashed the MK, then when connected to the computer via USB Windows Find a new device and power it up as a driver. Vin of retaliation from dad USBThermometerwindows-driver

The Windows 10 computer shutdown timer is a handy option for computer users who often idle robot processes.