Tag Info

New answers tagged

3

For reference, here's a link to the ATTiny84 datasheet. Section 16.13 specifies the ADC-related registers for controlling the ADC peripheral. 16.13.1 specifies the ADMUX register: Bit 7 6 5 4 3 2 1 0 0x07 (0x27) REFS1 REFS0 MUX5 MUX4 MUX3 MUX2 MUX1 MUX0 If REFS1=0 and REFS0=1, the ADC will use the external reference on pin PA0. These registers can be ...


2

The internal pullup resistors might be considerably higher in value than 10k - perhaps 50k. (I don't have the Attiny45 datasheet handy, but another AVR datasheet lists 20k to 50k for the Atmega328). That might be too high for this application; without the datasheet for the encoder I can't say. The external 10k resistor will allow faster rise times on those ...


1

You have requested 9600 baud serial communication, which is probably not correct for your ISP sketch. I believe by default that it is now 19200, but you can tell for sure by finding the initialization line in your ISP sketch, such as void setup() { Serial.begin(19200); The -b parameter to avrdude specifies the baud rate for communication with the ...


2

By default, an Arduino Uno automatically resets itself whenever the host computer opens its serial port. After that, the boot loader waits for a few seconds to see whether there is any serial traffic intended for it, and that disrupts the communication sent by avrdude. You’ll have to disable this auto-reset by connecting a 10µF capacitor between the RESET ...


3

A short write-up from chat. First make sure the driver module is loaded, apparently this does not happen automatically: Option 1: On the fly: modprobe cdc-acm Option 2: To load the module at boot time: sudo bash -c 'echo hoi >> /etc/modules Notice the double >> is important. reboot check if the module is loaded: lsmod | grep cdc-acm ...


0

Solution was to switch to arduino IDE v. 1.0 look at comments: http://tekstop.wordpress.com/2011/12/30/programming-attiny13-using-arduino-isp-and-all-the-hacking-involved/


3

As @jippie said, this is simply a matter of applying an external clock source (it actually does not matter whether the clock source is 20MHz or not, it just needs to hit 1MHz or so to manage the SPI programming speed of ArduinoISP). As an alternative to the ArduinoISP version mentioned above, you could try ScratchMonkey, which in addition to clock ...


6

I suspect you have set the controller's fuses to use an external clock source as it is impossible to get the internal oscillator to run at 20MHz. You can blow new life into your controller by connecting a clock signal to pin 2 CLKI and try to reset the clock to 8MHz internal RC clock. There is actually a 'fixed' version of ArduinoISP that has a clock output ...


3

That's perfectly fine... The short answer is that there is nothing wrong with this approach. It presumes, of course, that you have time to switch and do an ADC conversion (which at 200Hz) you do. You might want a series current-limiting resistor in line with the gate to protect your MCU driver (if the total gate charge of the N-FET is in the tens of nC, ...



Top 50 recent answers are included