RS232 to TTL / CMOS

par le Jan.02, 2013, sous Microcontrôleurs

No long explanation since this is really a basic thing.
I needed it for the Raspberry.
I just add the Kicad Scheme:
and Files: RS232

Commentaires fermés sur RS232 to TTL / CMOS :, , more...

Pic Astro and Pic Programming

par le Nov.26, 2012, sous Astronomy, Microcontrôleurs

I had some issues with « PicAstro ».

Suddenly no response on PC side (Serial) nor on motor side.
The beast is dead.

So, first I checked what’s going on at microcontroller level. No live signals, no response on any Input, simply the clock was running, nothing else.

So I decide to verify if I can reprogram the bootloader.
But I have no PIC programmer.
No problem I will built a cheap one based on JDM (on internet) but reduced to the strict minimum.

The programmer is built, but the PIC does not answer, dead.

I buy a new PIC (waiting is horrible in these cases) and try. It works.
I put the brand new programmed PIC in the socket, start the PicAstro and I am able to connect with “Tinybld” and so to flash the application hex file.

Flashing is successful and then surprise, the DE motor runs as expected, but the AD motor does not.
It seems there is a roughly 1 Hz pulse in the background and when I make the motor turning with the PAD the motion is not smooth at all and even there is no torque.

For me it is clear, suspect number one is the L298 driver …
I decide to just modify the Logic to Power interconnection to use the (supposed) sane DE circuit but with the AD signals.
Same result, so error does not come from the Motor Driver circuit.

I test of all the signals with the scope and I find out that when I test the RB5 output the PIC stops …
Why, RB5 is supposed to be an output, why does it influence the PIC software?

After multiple other checks (is my programmer ok ???) I discovered that the new PIC comes with the LVP (Low Voltage Programming) bit set which has as a consequence that RB5 cannot be used as general purpose I/O …

So I decided to modify the programmer in order to program the PIC in High Voltage Mode so that I can overwrite the LVP bit.

After that everything works and I even discovered that the original PIC was not dead, simply the LVP bit was already reset so not recognized by the LVP programmer.

Moral of the Story … Do not trust to LVP, go directly to HVP so everything can be done without restriction and … frustration

See programmer sketch hereunder.


See Kicad 3D view:
PIC High Voltage Programmer
Complete Kicad Files:

Commentaires fermés sur Pic Astro and Pic Programming :, , , , , , more...

Arduino Mega

par le Sep.18, 2010, sous Microcontrôleurs

I just received the Arduino Mega board
Unfortunately there is not too much documentation on the Atmega <> arduino pins available.
So I tried to make the association myself.
See the Openoffice calc sheet here Arduino_Mega_Pins
and the Atmega Pinout there

Arduino Mega PIN Implementation

Commentaires fermés sur Arduino Mega :, , more...

Protocole Serie Variateur

par le Mar.23, 2009, sous Microcontrôleurs

variateurs et microcontrolleurs

Variateurs de vitesse



à N2-203-M Monophasés

à N2-405-M 3 Triphasés

1 Principe

La liaison avec un
Automate, un Pc ou autre contrôleur, se fait selon le principe
suivant avec une liaison RS232 ou RS485. (lire la suite…)

Commentaires fermés sur Protocole Serie Variateur more...

à la recherche de quelque chose?

Utiliser la forme de recherche:

Toujours pas trouvé? Laissez un commentaires avec vos remarques!

Visitez vos connaissances!

Quelques amis recommandés...