If you are programming an Atmega328-PU for the first time out of the box , DO solw down the bit-clock of the programmer either using the -B option of avrdude or the switch on the programmer hardware.
This is absolutely the most frustrating experience in programming a microcontroller.
The Atmega family from Atmel is a wonder of semplicity and power, BUT you need to know your devil.
For every number (Atmega168, Atmega88, Atmega 328 and so on ... ) there are different version of the processor, namely the V the P the Pu and other, they are not the same !!! mainly they change the signature, this make them effectively different, look in the datasheet to see which one is the right one for the processo you have, if you don choose the right one in the programmer you can't program the chip.
Back to the Atmega 328-PU, this small bugger it's a '168 with double the memory, so, for example, you can fit double the program length from Arduino, BUT it's different from the '328 used in Arduino, they use a '328P, low power version, and you have a 328-PU more generally available.
To use it with Arduino look in the Arduino forum and search for Atmega328 or Atmega328PU, there you will find the reference to what to change in the Arduino ide to program the bootloader.
Nobody if not vaguley mention the fact that you have to slow down the bit-clock, coupled with the fact that I never need to do so with the Atmega168 or Atiny45 ( I've programmed them 100's of time), it took me a whole afternoon to find what was wrong, in the end I flipped the switch that slow the bit-clock in the programmer and everything went fine...
Gosh Batman ! slow that CLOCK !!!!
domenica 15 aprile 2012
martedì 2 agosto 2011
Doram Distortion Meter
Hi everybody a fellow of mine has found this instrument . Used to work , it was used to test distortion while designing audio power amp, mfctd circa 1975.
No other infos.
Looking for information about it , how to use it, possibly a manual.
thank a lot.
No other infos.
Looking for information about it , how to use it, possibly a manual.
thank a lot.
mercoledì 9 febbraio 2011
Articolo Soft start per lampade alogene
Su infoportal ho pubblicato un breve articolo sulla costruzione di un semplice Soft start per Lampade alogene a bassa tensione.
Infoportal - Articoli - Alimentatori - soft start per lampade alogene
Infoportal - Articoli - Alimentatori - soft start per lampade alogene
lunedì 18 ottobre 2010
Wow ! A new tutorial about the attiny45-85 based on my work
HLT wiki/Arduino A Ttiny 4585
Interesting !
HLT wiki/Arduino A Ttiny 4585
Interesting !
giovedì 10 giugno 2010
Arduino IDE with ATTiny45 (porting)
form my pages here
some notes to better use the board end the software
You HAVE to modify "board.txt" to include the Attiny45 processor, add this part to end of the file
attiny45.name=Arduino w ATtiny45
attiny45.upload.protocol=stk500
attiny45.upload.maximum_size=4096
attiny45.upload.speed=19200
attiny45.bootloader.low_fuses=0xdf
attiny45.bootloader.high_fuses=0xca
attiny45.bootloader.path= attiny45
attiny45.bootloader.file=ATmegaBOOT.hex
attiny45.bootloader.unlock_bits=0x3F
attiny45.bootloader.lock_bits=0x0F
attiny45.build.mcu=attiny45
attiny45.build.f_cpu=8000000L
attiny45.build.core=attiny45
these line will define the board giving max memory size for program (4096) and instruct the compiler to build code for the tiny45.
to know which mcu are supported by avr-gcc and their names use
avr-gcc --target-help
in a terminal window (works in Mac OSX and probably in Linux)
PIN MAPPINGThe best I can do for the pin mapping is in the pins_arduino.c in the core folder, the function are multiple per pin depends on the function you use to refer to the pin;
I.E. analogWrite (0,231) // output a pwn signal to real pin 5
digitalRead(5) // read a digital value from real pin 1
analogRead(5) // read an analog value from real pin 1
and so on ... like in a real arduino .
avr-gcc --target-help
in a terminal window (works in Mac OSX and probably in Linux)
PIN MAPPINGThe best I can do for the pin mapping is in the pins_arduino.c in the core folder, the function are multiple per pin depends on the function you use to refer to the pin;
I.E. analogWrite (0,231) // output a pwn signal to real pin 5
digitalRead(5) // read a digital value from real pin 1
analogRead(5) // read an analog value from real pin 1
and so on ... like in a real arduino .
venerdì 22 gennaio 2010
tanto per vedere quanto è difficile fare un bloggino

In realtà questo è il circuito che uso come termostato milleusi, è semplice ed economico , sopratutto nel mio caso visto che ho un cassetto pieno di uA741.
Dato che è piuttosto datato come OpAmp volevo sfruttarlo per impieghi poco onerosi e questa applicazione è proprio quello che il dottore ordina...
lo schema è più meno standard come comparatore, parti degne di nota sono :
i diodi d2..d4 servono ad evitare il fastidioso rimbalzare dell'uscita nel momento in cui cambia, alzando il punto di conduzione di T1 si evita l'incertezza, inevitabile, dato che il 741 non commuta bello netto, ma indugia tra il su e il giù.
R4 che per inciso è da 1MOhm, serve per regolare l'isteresi.
D1 Blocca le tensioni inverse se l'uscita è collegata ad un relais.
D2 è il riferimento di tensione quasi stabile.
Come sensore si usa un transistor in TO220. per lo meno io l'ho usato perchè mi veniva comodo per avvitarlo al metallo del riscaldatore.
Dato che è piuttosto datato come OpAmp volevo sfruttarlo per impieghi poco onerosi e questa applicazione è proprio quello che il dottore ordina...
lo schema è più meno standard come comparatore, parti degne di nota sono :
i diodi d2..d4 servono ad evitare il fastidioso rimbalzare dell'uscita nel momento in cui cambia, alzando il punto di conduzione di T1 si evita l'incertezza, inevitabile, dato che il 741 non commuta bello netto, ma indugia tra il su e il giù.
R4 che per inciso è da 1MOhm, serve per regolare l'isteresi.
D1 Blocca le tensioni inverse se l'uscita è collegata ad un relais.
D2 è il riferimento di tensione quasi stabile.
Come sensore si usa un transistor in TO220. per lo meno io l'ho usato perchè mi veniva comodo per avvitarlo al metallo del riscaldatore.
il mio sito dove c'è lo schema il layout del PCB e tutto il resto in formato EAGLE
mercoledì 20 gennaio 2010
Toner Transfer Paper Press 'N' Peel
Una nota rapida per dire che la carta speciale per fare i circuiti stampati a trasferimento toner Press 'n' peel funziona bene , ma la temperatura è essenziale che sia corretta per ottenere un buon trasferimento del toner, se usate stampanti HP intorno ai 180 C° è OK .
Per il trasferimento è perfetto un laminatore a caldo (plastificatore) da pochi spiccioli a cui si applica un semplice termostato per alzare la temperatura , di default sono intorno ai 100 C° (troppo pochi), vedi il sito
Etichette:
press and peel toner transfer p n p ttpPCB
Iscriviti a:
Post (Atom)


