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.
16 questions
1
vote
0
answers
229
views
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 ...
0
votes
1
answer
133
views
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()"+',...
4
votes
1
answer
989
views
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 ...
3
votes
3
answers
3k
views
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 ...
1
vote
1
answer
3k
views
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 ...
0
votes
1
answer
124
views
Which pins are represented by these constants from ABR library?
The following code comes from AtTiny serial library that I want to use:
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
// change these to use another pin
#...
0
votes
1
answer
744
views
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 ...
1
vote
0
answers
623
views
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 ...
2
votes
1
answer
382
views
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 ...
1
vote
2
answers
718
views
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 ...
2
votes
0
answers
2k
views
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 ...
3
votes
2
answers
3k
views
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 ...
0
votes
2
answers
2k
views
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 ...
0
votes
1
answer
496
views
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....
2
votes
1
answer
3k
views
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-...