Sunday 29 November 2015

Remote Controlled Robot.



A fun project to interest my daughter in electronics.
Some while ago i bought the chassis with the wheels, motor's and gearbox.

For "The Brain" i use an Arduino pro mini 328 programmed with BascomAVR.

To control the motor's i applied it with an L293 . I made an heatsink from a little square
piece of coper.



The L293 is an quadruple half H driver.
I use 2 driver's to control one motor.
his way you can reverse the motor direction.
I supply the enable pin's with an PWM
signal from the arduino. This make's it
possible to regulate the motor speed. With
the motor speed you can of course control
the speed of the robot. But also if you
increase the speed of the left motor and
decrease the speed of the right motor, it
wil make a right turn and vice versa.


I wired an ISP connector so it's possible    
to update the firmware.

Some capacitor's across the motor's
prevent interference of the remote link



As power source i used two 18650 Li-ion battery's in series which makes 7.4V. This voltage will supply the motor's. A 5V
regulator is used for the Arduino. 



To control the robot wireless, i use
two NRF24L01+ modules.



The remote control consists of a Atmega8 also with an
NRF24L01+. With 2 potmeters i control the PWM signals
en motor direction of the robot. With the potmeter's in the
middle position the robot is motionless.
If you turn the left potmeter clockwise, the robot will
go forward. If you turn it counterclockwise it will go
backward's. The right potmeter control's the stearing.



Well that's all for now. It's a functional machine but still some work to do though.
I still wait for the battery holder to arrive. The rear wheel consist of an metal ball which will
roll in all direction's. It make's a lot of noise. I planned some rubber wheels for the backside.
I have to find an enclosure for the remote. And i probably will exchange the potmeters with an
joystick.

Finally the battery holders arrived so the battery's could be properly mounted.
Each Li-Ion battery has it's one charger circuit (TP4056). An extra switch to put the robot in charging mode. I use a standard 5V USB adapter to power the charger circuit's.

I tried to install rubber weels on the rear, but that didn't work. To much friction.





Wednesday 25 November 2015

Delphi7

 Some program's i made to improve my Delphi skill's

RS232 PIN TESTER

 


   The program display's the status of
   the control line's on the RS232 port.
 
   It's also possible to set and
   reset the DTR and RTS lines.



TLC549 VOLTMETER




Experiment to test how to connect some 
electronics onto the RS232 port.
Wel it was even easier than i thought






HOW TO CONTROL A PCF8574P I2C-BUSS I/O PORT EXPANDER






Toggle pin's on the PCF8574P I2C I/O expander.                    
By pushing the "toggle bit" button you can
invert individual bit's. After changing a bit,
the port will be read.
When pushing the "read status" button, 
the actual port status will be updated.









                                                                                           

Read PCF8574. Device adress is: 01000001                                    



MAX127 USED AS 8 CHANNEL VOLTMETER WITH BARGRAPH




  I2C routine's used to read out an MAX127
  8 channel 12bit's ADC.








                  ADDITIONAL FEATURES:
       -Chart, draw's curve of measured value.
       -Logging, write's measured values to disk.








CONNECTING A NOKIA 3310 LCD TO THE LPT PORT.

       

The program "NOKIA3310LCD" is specialy made 
to test an LCD.
It's also possible to send a bitmap picture (84x48 pixels)
to the display.

The program "PIXELSCAN" only convert's pixel data
into ASCII-files, which can be used as data in a 8051 listing.




             


Links:

www.microsyl.com/index.php/2010/03/24/nokia-lcd-library/   I actualy used this routine's.       I                                                                                                               translated them into BASCOM 
                                                                                                    routine's. 
                                                                                                    Thank's 'Bissonnette Sylvian'                 
www.techdesign.be/projects/012/012.htm                                  Just for inspiration.

Linsley Hood Class A Amplifier With 2n3055


I have plan's to build this amplifier. It's plain simple, and i have read a lot of promising
articles about this design.