© 2024 EasyEDA Some rights reserved ISO/IEC
Brand new interactions and interfaces
Smooth support for design sizes of over 3W
devices or 10W pads
More rigorous design constraints, more
standardized processes
For enterprises, more professional users
Easy to use and quick to get started
The process supports design scales of 300
devices or 1000 pads
Supports simple circuit simulation
For students, teachers, creators
STD ATtiny13 Battery-free iButton emulator | Up to 8 keys
Mode:
Battery-free emulator of the well-known iButton key based on ATtiny13. The body of the key is the same size as the original one, and the microcontroller's EEPROM memory allows to store up to 8 key codes.
The key itself runs on parasitic power, but programming requires an external 5-30 volt power source, for example, a CR-9V (PP3) battery.
The device is designed just for fun and as a souvenir.
See the detailed review of the project on my YT-channel (English subtitles): https://youtu.be/5b73LqXjfCg
This project dedicated for research purposes only. All information carried within is exploratory in nature. The creators take no responsibility for any incorrect use of the technologies mentioned.
In many respects, the project is based on my previous projects of fan controllers on ATtiny10 and ATtiny13.
For MCU Flash ROM programming you will need a USBasp programmer (or any other that supports the TPI - Tiny Programming Interface), which is connected according to this schematic:
The programming itself is performed from the Arduino IDE, with the ATtiny13 core installed in it (see the links below).
Please note that the code is written for the MCU clock frequency of 8 MHz. This means that in the Arduino IDE, in the Tools->Clock menu, you should set the value to "9.6 MHz internal osc.", and then preferably to slow down the clock by calibrating the value of the OSCCAL register in the code (this value will be unique for every specific exemplar of the chip). This can be done, for example, by uncommenting "Pulse generation" section of the code and measuring the duration of the pulses using an oscilloscope.
Code - https://github.com/DmitryMuravyev/ATtiny13-Battery-free-iButton-emulator
Additional project files - https://drive.google.com/drive/folders/1QQMyIkBVng6_JfQlNiIVPIaYJ0QIDTjX
ATtiny13 Datasheet - https://ww1.microchip.com/downloads/en/DeviceDoc/ATtiny13A-Data-Sheet-DS40002307A.pdf
Tips and Tricks to Optimize Code for 8-bit AVR - https://ww1.microchip.com/downloads/en/AppNotes/doc8453.pdf
1-Wire protocol (Book of iButton standards) - https://pdfserv.maximintegrated.com/en/an/AN937.pdf
USBasp firmware - https://www.fischl.de/usbasp/
USBasp firmware update guide - https://www.electronics-lab.com/project/usbasp-firmware-update-guide/
MicroCore (ATtiny13) for Arduino IDE - https://github.com/MCUdude/MicroCore
Battery-free 4in1 DS1990 emulator based on tiny13 - https://anyram.net/blog_ru/?p=1050
Uploading/fuses: avrdude -v -pt13 -cusbasp -Pusb -B32 -Uhfuse:w:0xff:m -Ulfuse:w:0b00111010:m -Uflash:w:iButton_Emulator.ino.hex:i
Decompiling binary file: avr-objdump -Dzmavr:25 Binary_file.hex >> Disassebled_file.asm
Decompiling ELF file (Executable and Linking Format): avr-objdump -S Binary_file.elf >> Disassebled_file.elf.asm
ATMega328 Arduino Nano (replica) - https://ali.ski/BTEzSU
iButton Reader - https://ali.ski/jQnE1q
Tactile Push Button - https://ali.ski/BK0MYV
Tactile Push Button Omron - https://ali.ski/dQ1Y1i
MB10F Bridge Rectifier - https://ali.ski/4Fs2E
SMD SOD-123 Schottky Diode - https://ali.ski/XvLAak
SMD LED Kit - https://ali.ski/B3TZXm
SMD Capacitor Sample Book - https://ali.ski/l-lE9
SMD Resistor Sample Book - https://ali.ski/6YxlCV
Loading...
Do you need to add this project to the album?