Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 22nd April 2008, 04:10 PM   (permalink)
Question Random Motor Circuit

Hi All

Does anyone know what circuit i can use to make a dc motor randomly move backward and forward, stop for a period of time and then start again? Any help and ideas will be much apreciated.

Thanks Edward
LtEdge is offline  
Old 22nd April 2008, 08:48 PM   (permalink)
Default

Connect an H-bridge to a microcontroller and have the microcontroller randomly drive it.
__________________
NO, that picture isn't me so don't bother asking if we can be friends.
dknguyen is offline  
Old 23rd April 2008, 03:19 PM   (permalink)
Default

I don't know much about Microprocessors? So could you possably give me a circuit diagram and maybe explain it.
Thanks
LtEdge is offline  
Old 23rd April 2008, 04:00 PM   (permalink)
Default

Here's the Mongoose schematic (a robot kit) with a Microcontroller and H-Bridge
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 23rd April 2008, 05:06 PM   (permalink)
Default

Is this the easiest option their is?
LtEdge is offline  
Old 23rd April 2008, 05:54 PM   (permalink)
Default

Yes, it is.
__________________
NO, that picture isn't me so don't bother asking if we can be friends.
dknguyen is offline  
Old 23rd April 2008, 06:18 PM   (permalink)
Default

could anyone possably explain the circuit to me and also show me exactly where and how everything goes
LtEdge is offline  
Old 23rd April 2008, 06:21 PM   (permalink)
Default

Step 1:
Google "H-bridge" and learn how they work and let you drive a brushed DC motor in both forward and reverse.

Step 2:
Google and read about how to wire up PICs. In the simplest sense, it involves wiring up power through a simple voltage regulator IC, some bypass capacitors between V+ and ground to stabilize the voltage, and wiring up the oscillator. A lot of microcontrollers now also have an internal oscillator so if that is good enough you don't even need to wire it up an oscillator (just power). How much easier can it get?

Example from some random website:
http://www.andrewkilpatrick.org/mind...ic_circuit.png

Google around for SIMPLE PIC circuits that do different things and compare the similarities between them. THat's what is needed to wire up in the most basic form.

A good start for H-bridges:
http://www.modularcircuits.com/h-bridge_secrets1.htm

THere are some things that are too vast, take too many words and unwarranted to take you step-by-step through them on a forum. Come back after you've done some of the reading and ask specific questions that will be easier for us to answer, and for you to understand the answers to. If I waste my time spitting out a huge chunk of text, you still probably wouldn't understand it because that's just the way it is. We aren't exactly here to hold your hand (and your last post irked me quite a bit in the "exact" nature of the request and wording because it seems to indicate a complete lack of effort on your part).
__________________
NO, that picture isn't me so don't bother asking if we can be friends.

Last edited by dknguyen; 23rd April 2008 at 06:30 PM.
dknguyen is offline  
Old 23rd April 2008, 06:32 PM   (permalink)
Default

blueroom, I think it's just funny the way your little avatar seems to look at the schematic for the mongoose. (Like are you sure you want to do this ? Or I really don't think he knows what he's getting himself into.)

............ lol
__________________
Truthiness Monkeys : Obedience, Ignorance, Fear.
killivolt is offline  
Old 23rd April 2008, 06:33 PM   (permalink)
Default

TO simplify BLueroom's schematic, you can probably chop off everything to the left and top of the PIC in the middle, leaving only the stuff to it's right, and the motor part to the bottom. In his schematic, he used an H-bridge IC rather than one of discrete components (The SN75410).

No regulator is in the circuit for the PIC so one should be added. A starting place to look at is how to use the LM7805. It's very simple, you should have no problem understanding how it's used if you take a glance at the datasheet (or the datasheet of any other linear regulator). I have no idea what those optocouplers are for on the top-right of the schematic so you can ignore those too.

Notice the H-bridge has uses the "raw" voltage (or a different voltage supply) from the PIC. The PIC uses a voltage that has been cleaned up by a regulator (not shown)
__________________
NO, that picture isn't me so don't bother asking if we can be friends.

Last edited by dknguyen; 23rd April 2008 at 06:38 PM.
dknguyen is offline  
Old 24th April 2008, 05:24 PM   (permalink)
Default

Anyone ever made something like this as a toy for the cat? Could be very entertaining!
walshlg is offline  
Old 24th April 2008, 05:52 PM   (permalink)
Default

dknguyen, I am not following you logic regarding the need for a regulator in the previous post. I use the TO92 sized 100mA LDO regulators to supply my robot uC's.

Why does the uC require a regulator? Isolation? Without regulation you will be able get more time out of the battery.

To use a 5V regulator you need more then 4 cells to get enough headroom for a regular regulator to function.
3v0 is offline  
Old 24th April 2008, 06:42 PM   (permalink)
Default

The PIC is not regulated and is quite happy with a 4xAA NiMH power source (about 5V, originally PICs were designed to handle 7VDC). Even better the 18F2525 (and many other 18F series PICs) have a built in low voltage detector and can set an interrupt when VDD drops below a setpoint.
A linear regulator is just going to sap precious power from your batteries, and require a higher power source to boot.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 24th April 2008, 09:01 PM   (permalink)
Default

I would be more worried about the requirements for V(logic) for the SN75410. Maybe the 4.5V min in the datasheet has some flexability? Doesn't seem like a lot of headroom there.
nickelflippr is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Random Dr.EM Chit-Chat 20 30th July 2005 05:00 PM
Random timer groot_brak Electronic Projects Design/Ideas/Reviews 5 2nd April 2004 03:34 AM
Random Selecting Output furrycow Electronic Projects Design/Ideas/Reviews 0 7th November 2003 07:20 PM
Random timer circuit required Tako Kichi Electronic Projects Design/Ideas/Reviews 0 11th October 2003 04:07 AM
BCD random number generator skydemon01 Electronic Projects Design/Ideas/Reviews 0 29th September 2003 11:58 AM



All times are GMT. The time now is 09:14 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker