Questions tagged [attiny13]

The high-performance, low-power Microchip 8-bit AVR RISC-based microcontroller combines 1KB ISP flash memory, 64B SRAM, 64B EEPROM, a 32B register file, and a 4-channel 10-bit A/D converter. The device supports a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts.

The high-performance, low-power Microchip 8-bit AVR RISC-based microcontroller combines 1KB ISP flash memory, 64B SRAM, 64B EEPROM, a 32B register file, and a 4-channel 10-bit A/D converter. The device supports a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts.

16 questions
4
votes
1 answer

ATTiny13 Interrupt Issue

I have recently been working on a project that I had initially been designing with an Arduino Nano, and I was able to create functioning code for my application, but for cost / space reduction I decided to port the application to an ATTiny13…
3
votes
3 answers

How to create a 1-hour timer with an ATtiny13A microcontroller?

I want to control an AC load such that it powers on for 1 minute, then turns off for 1 hour, then on again for 1 min, and so on, in a loop. I just modified the blink sketch to do: Turn A1 on Then delay for 60,000 ms Then turn A1 off Then delay for…
VOID seekers
  • 57
  • 2
  • 7
3
votes
2 answers

Low Power Pin Change Detection (ATtiny)

I want to use an ATtiny as data logger for the opening and closing of a door/window. For that I am using a reed-switch. Since I want to run it from a 3V coin battery, long term power consumption is crucial. Therefore the ATtiny (currently 13A) is in…
Kwasmich
  • 1,523
  • 12
  • 18
2
votes
1 answer

Can I connect a voltage, higher that the 1.1V bandgap voltage, to an ADC pin

Can I (attempt to) measure a voltage that is higher that the ADCs Vref, without damaging my IC? I'm trying to measure the battery voltage using a resistive divider, and using the internal 1.1V bandgap voltage. I selected the resistors so the voltage…
Gerben
  • 11,332
  • 3
  • 22
  • 34
2
votes
0 answers

Attiny13 analogread() not working on all pins

I am new here and perhaps you could help me. I am trying to program Attiny13 with the following short sketch which uses ADC (analogread()) function, that is supposed to work like this: reads voltage from voltage divider using photoresistor -…
marek
  • 21
  • 2
2
votes
1 answer

Uploading .hex to ATTiny13 using Arduino

I would like to upload a .hex to ATTiny13V (or '13A) using Arduino Uno R3. I think I know everything to do, but ATTiny13 ISP support and Arduino IDE is a bit search-and-find, and I have some grey-areas in my understanding of how this all works…
TooManyHandles
  • 113
  • 1
  • 6
1
vote
0 answers

Burn code to Attiny13/85 the easy way

Totally newbie here. I need to burn 50 blank Attiny13 chips with the following code: https://github.com/mstratman/relay-bypass/blob/main/relay-bypass/relay-bypass.ino AFAIK the code can be used by anyone since its license is MIT…
1
vote
1 answer

How to control the power of attiny13a via pin change interrupt?

I'm trying controll the power of attity13a and turn off/turn on the led. I'm going to goals: After to click on the button0 led will blicking 5 second nad then the attiny13a going to sleep. After to click on the button1 then wake attiny13a up and…
Kvartu
  • 33
  • 2
  • 6
1
vote
0 answers

Can 2 or more LED strobe Lights Flash in Sync?

I'm trying to build a strobe light that has at least 1 mode that can sync with another unit. The strobe light has 2 colors, white and red which are driven by 2 qlite drivers which are controlled by an ATtiny13a processor. The strobe light will be…
1
vote
2 answers

Making a 7-hour timer-based relay

I want to make a very small 7-hour timer circuit that can turn on a relay after 7 hours. I am trying to make the first prototype with an Arduino Nano but I can't understand how to program it for such purpose. So please help me out. Once I make a…
Dharmik
  • 128
  • 8
0
votes
1 answer

problem conversion value

I have two functions that return an int16_t but I need to convert the ints to char* is for an attiny13 It would be something like this const char* msg = "value1()"+','+"value2()"+','+"value3()" like example #include "TinyRF_TX.h" void setup(){ …
jota mauel
  • 11
  • 2
0
votes
1 answer

Which pins are represented by these constants from ABR library?

The following code comes from AtTiny serial library that I want to use: #include #include #include // change these to use another pin #define TX_PORT PORTB #define TX_PIN PB0 #define TX_DDR DDRB #define…
Tomáš Zato
  • 340
  • 5
  • 17
0
votes
1 answer

AtTiny analog read always 1023

I am trying to replicate Low power LED firefly project. So what I'm trying to do is to do an analog read from a LED, to detect light. To simplify it a bit, I am using different pins and different leds for IN and OUT. The code: #define PIN1 don't use…
Tomáš Zato
  • 340
  • 5
  • 17
0
votes
2 answers

How to add Attiny13 to Attiny board profile in Arduino IDE 1.6?

Several months ago, I asked how to add (or where to get) Attiny13 to the list of boards in the Attiny package available in github: https://github.com/damellis/attiny In post 1.5 IDE, the package is installed by adding repo's JSON file to boards…
Tomáš Zato
  • 340
  • 5
  • 17
0
votes
1 answer

Can I create a serial.read command with the arduino code alone?

I am trying to manipulate a project and the simplest way to do what I am trying to do would be to use the existing code. This code is designed to take an input from the serial monitor using serial.read() and manipulate it. For example if I type…
user26383
  • 81
  • 1
  • 10
1
2