Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Auto modification of pic software

Auto modification of pic software

Auto modification of software means that a computer (PC) changes (and downloads) pic software automatically into a pic. This means a pic can be re-programmed without human intervention.
In this observation one pic is flashing a led. The other pic is equipped with an LDR so it can ‘see’ the LED. It’s objective is to copy the flashing of the LED from the other pic.

In order to do this the pic must be able to distinguish between light and dark, using a threshold value. At the start of the program this threshold value is wrong. By trail and error the computer will determine what the correct threshold value is and modify the program in the pic to reflect this correct value. Yep, right: auto calibration done the hard way!

So, how does the modification process work. At the start of the sequence the computer writes the first version of the pic program to disk. Then it is compiled and downloaded into the pic. The program in the pic looks at the led of the other pic (which is doing nothing, just flashing) and tries to see the difference between light and dark.

Visit Here for more.







 

More Articles to Read

Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown
Blinking Christmas Lights
Blinking Christmas Lights
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
Qinsi-QS5100 Sn63Pb37 solder profile
Qinsi-QS5100 Sn63Pb37 solder profile
Water Detection System
Water Detection System
Professional Hi-Fi 15W Tube Amplifier circuit
Professional Hi-Fi 15W Tube Amplifier circuit
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits
Big F’n 3D printer build
Big F’n 3D printer build
Temperature alarm for boiling milk
Temperature alarm for boiling milk
QuadBot is a 3D-printable walking robot for everyone
QuadBot is a 3D-printable walking robot for everyone
MicroConverter I2C Compatible Interface
MicroConverter I2C Compatible Interface

Top


Shares