Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Hi Guys
I made a robot that can be controlled by using an Android phone as a steering wheel. When the phone is tilted forward it moves forward, if you tilt it to the left it turns left and so on...
You can find the details on my blog. There is a video, some explanation on how it works and...
You're right, there is a mistake in the code. It should be ambient - total. Thanks for pointing that out. The principle is correct though: measure the ambient light and the total light separately; subtract them to get the reflected light.
Hi upand_at_them
The technique was used in an obstacle avoidance robot last year and works fine. There is no reason why more IR light can not be represented by a lower voltage. That does not make de result unreliable.
If the second measurement is lower than the first, there is reflected...
Hi PLC
The best thing to do in my opinion is to build a photodiode amplifier with an opamp (operational amplifier), like the one shown in this **broken link removed**. It converts the current through the photodiode to a voltage. The conversion ratio is equal to the resistance of the resistor...
Hi
You can find a cool tutorial **broken link removed** that will help you to build your first robot using lego and a microcontroller board. The tutorials on the site start from the very beginning.
Good luck!
Slorn
Hi
Lots of great tutorials and C18 code examples can be found here:
**broken link removed**
It starts with blinking a LED and goes up to building robots using a PIC18.
Have fun with it!
Slorn
Hi
The following tutorial shows how to build your first project with MPLAB and the C18 compiler. It discusses all the little problems you can have compiling your first program with the C18 compiler, including the one above.
**broken link removed**
Slorn
I use a Dwengo programmer! Its a PICkit2 clone so you can use it as a programmer and as debugger strait from MPLAB, and its only 20 euro.
**broken link removed**
Slorn
Hi
Internally a phototransistor is very different compared to a photodiode. However, externally they appear very similar.
In a photodiode the inverse leaking current depends on the amount of light.
In a photo transistor the light is like the base current. The collector-emitor current is an...
Hi
Here's a great tutorial that uses a servo controlled by a PIC18:
**broken link removed**
It shows how to build a very simple light tracking robot with only a servo and two light sensors.
Slorn
When you turn on the motor it will probably ask for a lot of current. Motors are virtually short circuits when they are not turning. The current demand for current can make the voltage of the supply drop. If it drops to low your controller will reset.
You can of course solve this using two...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.