Questions tagged [attiny]
An 8-bit, low power AVR microcontroller from Atmel.
39
questions with no upvoted or accepted answers
3
votes
0answers
250 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 ...
2
votes
0answers
475 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
308 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
895 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....
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 ...
1
vote
0answers
36 views
Can't upload a sketch to ATTiny2313-20PU
I set up Arduino Uno to program Attiny chips. It works normally with a discrete Attiny85: the blink sketch uploads normally, and the chip works alone from USB 5v power (LED blinks as expected).
...
1
vote
0answers
38 views
Arduino IDE on Attiny45: What kind of power does a chip need?
I have this little AtTiny45 which I'm loading a program with Arduino as ISP.
My goal to use this chip along with a op amp, a piezo buzzer and a press button, and have it automatically sleep between ...
1
vote
0answers
152 views
Radio receiver: deep sleep when no byte arrives, and wake up when a byte arrives?
This code works to listen for bytes via radio (with a 433 Mhz receiver module) with the Manchester library and Manchester code, and do an action when certain bytes are received:
#include "Manchester....
1
vote
0answers
152 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 ...
1
vote
0answers
172 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
163 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
279 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 ...
1
vote
0answers
475 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
590 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
417 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
0answers
952 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
248 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
144 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
607 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
51 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
752 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
207 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
98 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
713 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
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
1answer
52 views
After reinstalling Arduino IDE, can't program Attiny with Arduino Uno [solved]
I use Ubuntu 20.04, and recently have reinstalled Arduino IDE. After that, I can't program Attiny85 or 2313 with an Arduino Uno board.
Earlier, this setup worked fine for -85 chip.
Test 1: upload a ...
0
votes
1answer
15 views
log STK500v2 commands while flashing a Mega
My final goal is to replicate the process with which the PC programs the arduino.
I have gone through the commands.h file and made a couple of attempts to get the logic right. But no success at ...
0
votes
0answers
82 views
Burning Digispark bootloader without an Arduino
I've been wondering if there is any method to burn a Micronucleus bootloader into a blank ATtiny85 Digispark using just Windows or a Linux distro, and not needing another Arduino board such as UNO ...
0
votes
0answers
93 views
Digispark green led being the only one to turn on
I was doing some tests with an ATtiny85 Digispark module using Arduino IDE on my Windows PC. I was testing some stuff with the DigiKeyboard library from Digistump.
Everything was going fine until ...
0
votes
0answers
29 views
Program ATTiny84 via Roshamglo in Arduino - USB Device does not appear in Linux
I recently bought a Roshamglo from SparkFun. This uses a Virtual USB connection to the ATTiny84. I cannot find the device once it's connect.
I installed the board via https://raw.githubusercontent....
0
votes
0answers
66 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
237 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
0answers
481 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
52 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 ...
-1
votes
1answer
161 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
814 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
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 ...