Editor Version ×
Standard

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators

Profession

1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 5,000 devices or 10,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

Ongoing

STD ATtiny13 Continuity Tester

License: CC-BY-SA 3.0

Mode: Editors' pick

  • 2.7k
  • 0
  • 9
Update time: 2022-08-05 17:37:03
Creation time: 2020-10-31 17:50:16
Description
# Overview The simple yet effective Continuity Tester is just a conversion of the original one by [David Johnson-Davies](http://www.technoblogy.com/show?1YON) from the ATtiny85 to the ATtiny13A. It is designed to check circuit wiring and PCB tracks. * Firmware (Github): https://github.com/wagiminator/ATtiny13-ContinuityTester ![pic1.jpg](https://raw.githubusercontent.com/wagiminator/ATtiny13-ContinuityTester/main/documentation/ContinuityTester_pic1.jpg) # Hardware The basic wiring is shown below: ![wiring.png](https://raw.githubusercontent.com/wagiminator/ATtiny13-ContinuityTester/main/documentation/ContinuityTester_wiring.png) Connect one end of a wire to the GND terminal and use the other end together with the pogo pin to check the continuity of wires and traces. The device is powered by a 1220 coin cell battery. Please remember that only the rechargeable LIR1220 Li-Ion batteries work. The "normal" CR1220s don't deliver enough power for the buzzer. # Software ## Implementation The code is using the internal analog comparator of the ATtiny. By using the internal pullup resistors on both inputs of the comparator and by using a 51 Ohm pulldown resistor to form a voltage divider on the positive input, the comparator output becomes high if the resistance between both probes is less then 51 Ohms. This indicates a continuity between the probes and the buzzer will be turned on. For a more precise explanation refer to [David's project](http://www.technoblogy.com/show?1YON). Timer0 is set to CTC mode with a TOP value of 127 and no prescaler. At a clockspeed of 128 kHz it fires every millisecond the compare match A interrupt which is used as a simple millis counter. In addition the compare match interrupt B can be activated to toggle the buzzer pin at a frequency of 1000 Hz, which creates a "beep". If no continuity between the probes is detected for 30 seconds, the ATtiny is put into sleep, consuming almost no power. The device can be reactivated by holding the two probes together. The LED lights up when the device is activated and goes out when the ATtiny is asleep. The code needs only 252 bytes of flash if compiled with LTO. ``` c // Libraries #include #include #include // Pin definitions #define REF PB0 #define PROBE PB1 #define LED PB2 #define EMPTY PB3 #define BUZZER PB4 // Global variables volatile uint16_t tmillis = 0; // counts milliseconds const uint16_t timeout = 30000; // 30 seconds sleep timer // Main Function int main(void) { set_sleep_mode (SLEEP_MODE_PWR_DOWN); // set sleep mode to power down PRR = (1
Design Drawing
schematic diagram
1 /
PCB
1 /
The preview image was not generated, please save it again in the editor.
ID Name Designator Footprint Quantity
1 MLT-5030 BUZZER MLT-5030 1
2 51R R1 0603 1
3 1k5 R2 0603 1
4 PWR LED1 LED0603 1
5 GND H2 HDR-M-2.54_1X1 1
6 100n C1 0603 1
7 POGO H1 POGO 1
8 LIR1220 B1 CR1220-SMD 1
9 ATTINY13A-SSU U1 SOP-8_150MIL 1

Unfold

Project Attachments
Empty
Project Members
Target complaint
Related Projects
Change a batch
Loading...
Add to album ×

Loading...

reminder ×

Do you need to add this project to the album?

服务时间

周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675

服务时间

周一至周五 9:00~18:00
  • 立创EDA微信号

    easyeda

  • QQ交流群

    664186054

  • 立创EDA公众号

    lceda-cn