We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [attiny]

An 8-bit, low power AVR microcontroller from Atmel.

38 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
363 views

Is it possible to put ATtiny85 to sleep while using TinywireS?

I have an arduino uno as the master I2C device talking to an ATtiny85 as the slave. What I want to do is have the Attiny85 receive a message from the UNO to tell it to power off which will then ...
2
votes
0answers
260 views

Software flashing attiny167 from RPi with avrdude

I am trying to flash a program onto an attiny167 (already bootloaded with the micronucleus bootloader) with a Raspberry Pi via avrdude and USB. Background I have 50 Raspberry Pi 3B's connected to an ...
2
votes
0answers
1k views

Read string from DigiUSB

I wrote simple code for my Digispark (Attiny85 with Micronucleus bootloader) in Arduino IDE: #include <DigiUSB.h> String inst; void setup() { DigiUSB.begin(); pinMode(1, OUTPUT); } void ...
2
votes
0answers
202 views

error with avrdude command line using arduino as isp (i think)

I am trying to upload a .hex file to my attiny85v-10pu and using my arduino as a isp (i think thats the right term) but it come up with this error. ser_open(): can't open device "lpt1": The system ...
1
vote
0answers
142 views

Integer corruption

I use a sensor to measure the temperature. This is returned as float. I feed this float using typecasting (int) to a blink function. This works fine. But the next is step is using this same unchanged ...
1
vote
0answers
86 views

Why does the program size increase so drastically with these switch-cases?

EDIT: The problem is my op-code catch is op >= 0x20 || op <= 0x2F rather than op >= 0x20 && op <= 0x2F and so most of the switch-case was being optimised away! This is a really ...
1
vote
0answers
404 views

I2C on ATtiny85 and Si4703 radio

I've got an Si4703 breakout from Sparkfun, which communicates via I2C. I have gotten it to work very easily using a regular 3.3V Arduino Pro Mini, but am now trying to move everything over to an ...
1
vote
0answers
485 views

Manchester.h message format

I'm sending some data by 433Mhz transmitter using manchester.h library from here https://github.com/mchr3k/arduino-libs-manchester and I'm trying to wrap my head around message format. In manchester....
1
vote
2answers
485 views

Using ATiny102 as HID device(emulating mouse)

I am trying to make my own mouse/keyboard from an attiny (it doesn't have to be attiny102 as the title suggests). I have read many articles on this subject: some are using v-usb library.But I ...
1
vote
0answers
708 views

ATtiny85 Comparator C interrupt on timer 1

I have a program that uses Timer1 comparator A in CTC mode. I realize that I need to set OCR1C for the timer to reset at given value. However there is no such thing as an interrupt generated by timer1 ...
1
vote
0answers
773 views

Manchester 433MHz Nano to ATTiny85

My transmitter is a Nano, the receiver is a Tiny85. I use a Logic Analyzer to check if stuff is moving, I can clearly see data coming in at the receiver. The receiver does not 'decode' the data, man....
1
vote
0answers
227 views

Attiny cores with SPI support?

It's been done, but the the tutorials I find seems incomplete. What I'm trying to do is make the ATTiny84 talk to the 2.4 GHz NRF24L01+ radio. I understand that in order to do that I need the MCU to ...
1
vote
0answers
135 views

Reprogramming a specific slave from the master ATTiny 85 (connected to IDE)?

Given that every ATTiny connected already has a bootloader (micronucleus) installed, here's my theoretical chain: Computer > Master ATTiny (Connected via USB) > ATTiny Slave A > ATTiny Slave B Is it ...
1
vote
0answers
573 views

ATtiny85 + HC-05 + Oled = smart watch

I am using an ATtiny85 for making a smart watch. Bluetooth module HC-05 with ATtiny85 pins PB3->TX, PB4->RX and it works. Secondly I have connected a 0.96" OLED on PB0 (SDA) and PB2 (SCL) and this is ...
1
vote
0answers
48 views

Attiny88 problem with LEDs and voltage

I have the following problem and wonder if anyone may have some inside into what may be happening. I have an array of 20 leds that i manage to multiplex using the attiny88 using only 9 pins (4 ...
1
vote
0answers
592 views

programming attiny88 & attiny828 with arduino

I found some information that the attiny88 and attiny828 can be programed from an arduino, similar to the programing of the attiny85/45, simply connecting the right pins. https://electronics....
1
vote
0answers
200 views

Arduino and ATtiny84 w/RF

I'm trying to send data from an ATtiny84 [1mhz] to Arduino Uno using a 433Mhz rf module and Manchester lib. Now I came across a weird problem, no matter what value I transmit, When I receive it on the ...
1
vote
0answers
88 views

HCF4021BE seemingly not working

void setup() { // put your setup code here, to run once: pinMode(3,OUTPUT);//data pinMode(4,OUTPUT);//clock } void loop() { // put your main code here, to run repeatedly: // byte sender=...
1
vote
0answers
691 views

RF RX not working when using ATtiny85 at 1MHz

The ATTiny85 code fails to read input from a 433Mhz RF receiver when working at 1MHz. The following example compiles perfectly and runs OK wihen the ATTiny85 is working at 8MHz. However, it compiles ...
1
vote
2answers
340 views

Attiny85 Timer 1 comparator B doesn't work properly (while A does)

I'm writing a simple program that is using Timer 1 comparator B to generate a square wave on DEBUG_PIN. So my code at first turns on timer 1 with prescaler 8192 so that one tick is approximately 1ms....
1
vote
1answer
5k views

Read temperature (DS18B20) with the ATTiny85

I'm trying to read the temperature of a DS18B20 with my ATTiny85 - but I'm getting rubbish data :D I should have gotten ~22 degrees, but I'm getting 129! I followed this tutorial i found here, but ...
0
votes
0answers
32 views

How to unbrick an ATtiny45?

I'm using an Arduino Uno as ISP Programmer to program a standalone ATTiny45 on a breadboard. Usually it works well, but I just uploaded a code like this: void setup() { pinMode(0, OUTPUT); # pin ...
0
votes
0answers
68 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
0answers
52 views

Attiny ADC at voltages less than 5v

So, this is peculiar. I am using an ATTINY84 chip as an i2c ADC converter (there are reasons why I'm using this rather than a dedicated chip, but that's not really relevant), and I've noticed that I ...
0
votes
1answer
59 views

How do I set up an ATTiny861A-PU for flashing with Arduino Uno?

I have found instructions for 8 pin Tiny but none for my 20 pin. How do I set this chip up on the breadboard for bootloading with Arduino?
0
votes
1answer
55 views

Is changing values in boards.txt and choosing Burn Bootloader enough to write fuses?

I am using Arduino IDE to program ATtiny84A connected to an Arduino Uno and Programmer set to Arduino as ISP. I would like to modify low and high fuse bits for ATtiny84A. As far I do not understand ...
0
votes
0answers
99 views

Software reset on Micronucleus possible?

I'm wondering if anyone knows if it's possible to do a software reset using the watchdog timer on a microcontroller using the Micronucleus bootloader. When I try it, it doesn't fully reset, as in ...
0
votes
0answers
159 views

Is this a good way of making a low power attiny? Unpower instead of sleeping

I am making a low power rf remote that just has 3 buttons and sends rf signals accordingly. I've been trying to make pin interrupts work when it's in deep sleep but it's a huge hassle. And then I ...
0
votes
0answers
594 views

avrdude: Can't find programmer id “{upload.protocol}”

Every half a year I get an urge to make some program for my ATTiny 13. The fascinating thing is, that every half a year I run into a problem, even though I got it to work 6 months before. So, this ...
0
votes
0answers
722 views

cannot get low power with Adafruit Trinket

I want to get as low power use during sleep as possible with an Adafruit Trinket. Based on results presented on various places in the internet (blogs etc), I expect to be able to go down to 50 - 100 ...
0
votes
0answers
394 views

Writing to flash Attiny 85

I set a project-goal for me: to make a very small compiler in Attiny.This compiler should read the code from user and translate it into code;then save it in some portion of the flash and jump there. I ...
0
votes
0answers
49 views

Will an in-circuit programmer mess up my board?

I am designing a circuit board that will contain, among other things, an ATtiny85 and an NRF24L01 module. I would also like to use an SOIC-8 ATtiny variant. In order to program this chip I will then ...
0
votes
0answers
2k views

Arduino IDE Can't find the USB Port

I'm on a Mac, running 10.11.6 and Arduino IDE 1.8.1. I've been prototyping some projects using an Adafruit Trinket. I was not having any problems, until at some point my Mac stopped recognizing the ...
0
votes
1answer
719 views

AtTiny44 and AtTiny 85 communication

I'm working on a project where I use two microcontrollers: an AtTiny44 (20MHz ext clock) and an AtTiny85 (8MHz internal). What I'm trying to achieve is an I2C communication between the 85 and the 44, ...
-1
votes
1answer
64 views

Increasing speed of Vl6180x Sensors

I have 5x vl6180x pololu ToF sensors. I have managed to hook up all of the sensors to the arduino via I2C by making each sensor startup at different times and when they do, changing their addresses, ...
-1
votes
1answer
850 views

Understanding schematics: resistors attached to Attiny85 pins V-USB

I'm currently trying to create my own Attiny85 usb thumb(to mimic an joystick). I understand that I have to limit the voltage on the attiny's pins that are connected to the D+/- pins from the usb. In ...
-1
votes
1answer
1k views

USB Device not Recognised - Custom Wattuino Nanite 841

What I have done: I have made a custom Nanite 841 which uses an ATTINY841 microcontroller. I have used the schematics from Wattuino to design my circuit, my PCB was made using a router with all ...
-1
votes
1answer
2k views

Arduino Mega 2560 as ISP for ATTINY2313 / ATMEGA328P

I have posted this on the Arduino forum also, but I give it more chance if posted here also. I've been trying to use my Arduino Mega as an ISP for programming two different ATMEGA328P's and a ...