![]() ![]() That's why I think the ATtiny is causing the trouble. But again, when I change the analog input the read-out value won't change! I noticed that when I switch off the ATtiny just for a second, the correct value is printed on the monitor. Even when I connect the analog input of the ATtiny to GND or any other potential the Teensy is always reading the same value. The Teensy is still reading a value every second, but the it's always the same value. When I switched to the ATtiny (8 MHz) using the TinyWireS library it became buggy: I began with 2 Teensies which worked perfectly. So when Teensy is told to read, it reads out the first address to know where the newest sensor value is saved in the FRAM and then reads out that value at the current address.įor testing, I use the Serial Monitor with the Teensy to print the values (sampled with with 1 Hz) it read from the FRAM. The ATtiny always saves the current FRAM memory address in the first memory address. Then the Teensy (which is supposed to work as the "main microcontroller" when everything works) is told that it's his turn and reads out the just written sensor value from the FRAM. Teensy 3.2 and ATtiny85 (programmed via Arduino ISP) are connected to an FRAM chip ( ) via I2C.ĪTtiny is reading an analog sensor and writes the value to the FRAM. I'm currently working on the following project:
0 Comments
Leave a Reply. |