Questions tagged [attiny]

ATtiny is a range of programmable 8-bit AVR microcontrollers by Atmel.

160 questions
1
vote
1 answer

ATTiny85 Serial communication with Bluetooth Module

For a simple project, I would like to use an ATTiny85 connected to an HC-06 Bluetooth module, so it can talk to my Android phone. I wrote code for my Arduino Uno and it worked as expected. When I changed the code to use on my ATTiny85 I got an error…
João Ghignatti
  • 2,281
  • 1
  • 13
  • 25
1
vote
1 answer

Raspberry PI to AVR attiny26 via SPI - three wire mode, garbled output

I have Raspberry PI 3 connected via SPI to AVR Attiny26, which in turn has a LCD connected to it. I am trying to get the SPI running, Now, the issue is that when I set up the AVR for two wire mode and don't configure pull-up on PB1 (MISO commented…
Sokre
  • 114
  • 6
1
vote
0 answers

ATTINY 85 - sleep watchdog time changes after first reset

I'm writing a simple program on my ATTINY 85. The program is supposed to light the LED pin when chip is awake, and turn it off when it is asleep. However, when I set watchdog timer to reset after 0.5 s, it does so on first reset, and then resets…
Em Ka
  • 121
  • 1
  • 8
1
vote
1 answer

Is it possible to communicate with two devices that only has I2C slave interface, each other? ATtiny841 and HDC1080 sensor

I'm new in this world of electronic developers and right now I am interfacing between one microcontroller, the ATtiny841 ATtiny841 Datasheet and I want to receive data from a HDC1080 temp/humidity sensor HDC1080 Datasheet, I was reading…
fabocode
  • 62
  • 1
  • 13
1
vote
0 answers

I2C repeated start

I am trying to use TC74 (or DS1621) temperature sensor which comes with I2C interface. My I2C ISR is able so far to write command and config bytes to the chip. However I don't know how to instruct the ISR to jump to state 0x10 (repeated start) for a…
1
vote
1 answer

AVR SPI programming issue

I'm trying to program an ATtiny13A with avrdude, using an Olimex AVR-ISP500 programmer, through the 6-pin ICSP connector. However, I can't get it to communicate with my MCU. The user guide tells to use -cstk500v2, here is the log with this option:…
1
vote
1 answer

Change/Override Trinket (attiny85) USB identification name, device name

The AdaFruit 'Trinket' library identifies itself as "Trinket HID Combo" when using as USB Keyboard. Is it possible to change this name to more useful name (with some code, constant etc)? I'm using Arduino 1.0.4 IDE. Take a look in the source of…
Codebeat
  • 6,501
  • 6
  • 57
  • 99
1
vote
0 answers

Problems with Arduino Attiny84 and Timer1

I've got an error that I can't find in any library: In function 'void__vector_2()' error lvalue required as left operand of assigment.
1
vote
1 answer

Attiny85 EEPROM erase, after power lost

my Attiny85 losts the whole EEPROM data, if I turn the power of. I use the Arduino IDE and I'm sure, that The EEPROM was wrote, because I get Serial feedback. Here my code: #include #include SoftwareSerial SSerial(0,…
SPJS01Pro
  • 79
  • 1
  • 11
1
vote
2 answers

ATtiny85 eeprom write in the arduino IDE

I have a problem: I can read the EEPROM from my ATtiny, but I can't write something in it. Here is my code: #include int addr = 0; int val = 2; void setup() { } void loop() { EEPROM.write(addr, val); addr = addr +…
SPJS01Pro
  • 79
  • 1
  • 11
1
vote
1 answer

Analog Input on ATTiny85 not working?

EDIT: SOLVED As the title, I cannot get any of the analog Inputs on the ATTiny85 to read off of a POT. For debugging and testing, it is currently hooked up to a shift register with 8 LEDs. This setup works fine when just outputting an int vale. At…
lukeb28
  • 179
  • 1
  • 2
  • 12
1
vote
1 answer

I2C Stops Transmitting After Exactly 7 Requests with Arduino

I am using an ATTiny85 running the TinyWire library to communicate with an Arduino Uno running the Wire library, from an I2C connection. I can transmit one byte at a time perfectly fine for as many requests as I want, however a problem arises when I…
Alex Wulff
  • 2,039
  • 3
  • 18
  • 29
1
vote
0 answers

ATTiny84A and RFM12B module isn't working with RF12

I’m doing a project where I need to send some data between to devices with a RFM12B transceiver. I’m using the RF12-library with the pingPong example – nothing is modified. My microcontroller is ATTiny84A and the wiring can be seen HERE My problem…
mclc
  • 65
  • 10
1
vote
1 answer

Fixing I2C-address issue with TinyWireS library

Hey I recently posted a problem I had with the I2C (slave) library TinyWireS. I could not use slave-addresses higher than 63 for whatever reason. I now want to start a new thread in order to fix this issue: You can find more information on my…
user3025417
  • 395
  • 1
  • 5
  • 17
1
vote
1 answer

is it possible compare a 16-bit value with a 8-bit compare match ISR

I am trying to make a servo controller that have a higher resolution than the ATtiny85 8-bit timer/counter. So far I have managed to get about 2000 positions on my servo (1µs/step) within a time frame of 21'000 µs. I have also managed to move 5…
CrowStudio
  • 75
  • 1
  • 9