Here I am again! this time I'll show you how to build a USB demoboard like the Microchip USB LOW PIN COUNT... save your money, DIY!
Visualizzazione post con etichetta pic. Mostra tutti i post
Visualizzazione post con etichetta pic. Mostra tutti i post
sabato 15 giugno 2013
LOW PIN COUNT USB compatible board
Etichette:
18f14k50,
count,
demoboard,
low,
low pin,
low pin count,
microchip,
microcontroller,
pic,
pin,
usb,
usb development
sabato 23 marzo 2013
How to use 4 HARDWARE PWM on a PIC @ 50hz
![]() |
simplified block diagram of PWM
operation
(from PIC 16F1509 datasheet) |
I'll use the PIC 16F1509, teach you the basics, so you can arrange the code to other PICs too.
My new project (lucky me) needs 4 hardware implemented PWM source, but I noticed that the pic microcontrollers usually have just 2 or 3 PWM modules. then I discovered this useful page: http://www.microchip.com/maps/Microcontroller.aspx which allows you to perform a parametric search over the complex pic-world. I ended up with the PIC 16F1509, which seems to be perfect: USART, 4PWM, comparator, 18 I/O pins, ADCs AND software selectable frequency for the internal oscillator!
Etichette:
16f1509,
arduino,
duty cycle,
Frequency,
mikroc,
pic,
Pulse Width Modulation,
PWM,
robot,
robotics,
serial,
seriale
domenica 20 marzo 2011
Interfaccia mouse ottico e PIC
se volete linkare, copiare, usare ecc ecc quello che c'è scritto in questo articolo potete farlo, ma citando l'autore.
non mi assumo responsabilità per danni a mouse, robot o alle vostre persone XD
OK, COMINCIAMO! :)
Per un robot che sto costruendo avevo bisogno di un sensore di movimento preciso ed economico... cosa meglio di un mouse ottico? solo che il pic che stavo usando non ha controller usb...
Etichette:
collegare,
connection,
controller,
interfacing,
mouse,
pic,
protocol,
robot,
serial,
usb
lunedì 14 marzo 2011
Interfacing an optical mouse (USB) with a PIC (which doesn't have USB CONTROLLER!)
if you want to copy, share, use etc. etc. all or part of this article you CAN DO IT, BUT please cite me and share the link to this article.
I'm not taking any responsibility for any kind of damage to your mouse, your PIC or yourselves XD
and yes, I posted this article on grix.com too (written in Italian).
OK, LET'S GO! :)
I needed a cheap (and accurate) motion sensor... What could be better than an optical mouse for the job? BUT... my PIC doesn't have a usb controller (and I'm cheap, so I don't want to buy a new one :p ) so I had to do things my way... :)
Etichette:
displacement,
interfacing,
motion sensor,
mouse,
pic,
pic16f877,
pic16f887,
robotics robot,
sensors,
usb,
usb mouse interfacing pic pic16f887 pic16f877
lunedì 7 marzo 2011
PWM seriale pic 16F628
Etichette:
16f628,
16F628A,
duty cycle,
mikroc,
onda quadra,
oscilloscopio,
pic,
pic kit 2,
PWM,
seriale,
treno impulsi
lunedì 7 febbraio 2011
Demoboard modulare per pic
Una parte della demoboard rimane sempre costante (però non è detto, potrebbe cambiare anche questa), mentre lo zoccolo porta pic cambia in base al pic che si vuole usare.
Questa scelta ha inoltre l'enorme vantaggio (per chi come me ha cominciato da pochissimo con l'elettronica) di permettere un buon debug: se non funziona un modulo (o se questo si rompe) si butta e se ne costruisce un altro mantenendo intatto il resto della demoboard.
Questa scelta ha inoltre l'enorme vantaggio (per chi come me ha cominciato da pochissimo con l'elettronica) di permettere un buon debug: se non funziona un modulo (o se questo si rompe) si butta e se ne costruisce un altro mantenendo intatto il resto della demoboard.
Per la realizzazione ho usato una scatola in plastica (ne potete avere 3 per 2€ nel "negozio svedese") opportunamente modificata mentre il circuito è realizzato su millefori...
Iscriviti a:
Post (Atom)
