From d1586ddf44afb3f4c77de7e0922ba144b10ce240 Mon Sep 17 00:00:00 2001 From: Daniel Faust Date: Fri, 4 Oct 2013 09:49:57 +0200 Subject: [PATCH] Added instruction for persistent baud rate change --- README | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README b/README index e115893..10e28b1 100644 --- a/README +++ b/README @@ -12,6 +12,7 @@ The ATtiny45 gets programmed live (no wiring need to be changed) through an Ardu https://www.youtube.com/watch?v=QWF8_Mfo1ek -*** Apparently I managed to solve this issue. I added two 4.7k pull-up resistors to the i2c lines (no comment...) and lowered the baudrate to 28800. I got this value while trying to replace i2c with the SoftwareSerial library, and that baudrate was the only one giving the least ammount of errors on a serial line. I dropped the idea of using SoftwareSerial because it consumes too much RAM (ATtiny45 has only 256 bytes), leaving no decent ammount for the app itself. +*** Apparently I managed to solve this issue. I added two 4.7k pull-up resistors to the i2c lines (no comment...) and lowered the baud rate to 28800. I got this value while trying to replace i2c with the SoftwareSerial library, and that baud rate was the only one giving the least ammount of errors on a serial line. I dropped the idea of using SoftwareSerial because it consumes too much RAM (ATtiny45 has only 256 bytes), leaving no decent ammount for the app itself. -modprobe -r i2c_bcm2708; modprobe i2c_bcm2708 baudrate=28800; +temporary: modprobe -r i2c_bcm2708; modprobe i2c_bcm2708 baudrate=28800; +persistent: echo options i2c_bcm2708 baudrate=28800 > /etc/modprobe.d/i2c.conf