Clicked.
Thanks!
I plan on using Tiny 84 and 85 at 8MHz
For the next few weeks, my efforts are restricted to the 84 core. The 85 processor is next.
for tiny robots
Excellent!
and I need the Servo Lib
For Servo to work with the 84 processor a minor change must be made to the Servo.cpp source file. The file is located in the {ArduinoRoot}\libraries\Servo directory. On line #103 should be this...
SIGNAL (TIMER1_COMPA_vect)
Change it to this...
#if defined( TIMER1_COMPA_vect )
SIGNAL (TIMER1_COMPA_vect)
#else
SIGNAL (TIM1_COMPA_vect)
#endif
Once this change has been tested, I'll ask for it to be applied the official version.
the SoftwareSerial Lib
I've been using NewSoftSerial (@ 9600 baud) with success. I'll switch to SoftwareSerial and report back.
Bear in mind that, from the factory, the internal oscillator may not be accurate enough for serial communications. The oscillator can be tuned (using the OSCCAL register) to be accurate enough.
the EEPROM Lib
There is a bug in <avr/eeprom.h> that prevents it from working with the 84 processor. There's a replacement file in the Arduino Tiny download that I belive fixes the problem.
and the analog read (if there is support)
There is support. I've tested the three analogReference modes1 and all eight analog input pins. It all seems to work.
After successful tests I'll make dedicated boards for these chips. The idea is to have 6 and 3 servo connectors plus serial or sensor connectors on the boards. All servo positions will be saved in the EEPROM so the user can connect the board to the PC using a FTDI cable and set new servo positions as new moves that are later played back directly on board.
Nice!
So I am willing to do any tests you can throw at me.
Two things need to be tested...
-
tone may not be working correctly. I need someone to measure the frequency generated. Ideally with the processor at 1 MHz and 8 MHz.
-
Servo. I currently don't have the means to test the Servo library with the 84 processor.
Any help you're willing to contribute is greatly appreciated!
1 Be sure to read the datasheet! The analogReference modes for the 84 processor are a bit different from the 168 / 328 processor.