Can I send timed voltage with just capacitors or do I need a microcontroller?

  • Thread starter Thread starter absurdparadox
  • Start date Start date
  • Tags Tags
    Voltage
Click For Summary

Discussion Overview

The discussion revolves around the feasibility of creating a timed voltage output circuit for automotive applications, specifically whether this can be achieved using only capacitors or if a microcontroller is necessary. The scope includes practical electronics design and programming aspects.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests that while it might be possible to achieve the desired functionality with discrete components, using a microcontroller would simplify the process significantly.
  • Another participant mentions the potential use of a CPLD (Complex Programmable Logic Device) and state machines as an alternative to microcontrollers, noting that it could handle the task but may be more complex.
  • A participant with programming experience expresses confidence in using microcontrollers, indicating that they find satisfaction in programming hardware to perform tasks like flashing LEDs.
  • A specific example of a Picaxe program is provided, illustrating how to send timed pulses, which may help in understanding how to implement the desired functionality with a microcontroller.

Areas of Agreement / Disagreement

Participants generally agree that using a microcontroller would be easier for the proposed task, but there are differing opinions on the feasibility of using discrete components or CPLDs. The discussion remains unresolved regarding the best approach.

Contextual Notes

Some limitations include the complexity of achieving the timing with discrete components and the varying levels of familiarity participants have with microcontrollers and CPLDs.

Who May Find This Useful

This discussion may be useful for individuals interested in automotive electronics, hobbyists exploring microcontroller applications, and those considering alternatives to microcontrollers for timing circuits.

absurdparadox
Messages
3
Reaction score
0
Hey guys, I'm basically extremely new to all this sort of stuff -- the most advanced thing I've done is wire up some electronics on my car (nitrous kit with extra safety electronics, etc, basically just splicing in and cutting wires)

Anyway, I've got an idea for something I want to try out on the car, but I'm a bit out of my realm, and not even sure what to search for.

Long story short, I would like to be able to hit a switch that would then send voltage X number of times for Y seconds at an interval of every Z seconds (say, it would close the circuit 5 times for 1 second each, every 3 seconds).

Is this something that would require a microcontroller or something of that sort, or could I do it with some sort of circuit involving only capacitors? Go easy on me, I barely know what I'm talkin about here, lol!
 
Engineering news on Phys.org
Hi and welcome to the Forum.

You probably could do that with discrete components, (although sending 5 one second pulses every 3 seconds seems a bit difficult !), but a simple micro could do it much more easily.

Do you have an actual project in mind? Why would you want to do this?

If you click on this link, you will see a discussion from last year, where different micros were mentioned.
https://www.physicsforums.com/showthread.php?t=331073

Don't be frightened of micros. They take a little getting used to, but they have good help available and you don't need to know all the possible commands to use them.

Especially, look at the Picaxe range. They use a language like Basic, but heavily modified to cater for all the special tricks the chips can do.
 
Cool, thanks for the info, will check it out!

Micros don't scare me too much -- I'm a programmer by trade, but just never work that close to the hardware.

As for the project itself, I'm being intentionally vague to be honest -- largely because this is something I think there is a decent (yet niche) market for, and if its so simple, I don't want to lose out to someone who could whip this thing up in a few minutes!
 
you could also do it with a CPLD and a state machine or logic as well. The CPLD could at least be programable and reprogramed. It should be able to do anything discrete logic can do and more. With the uP you should be able to easily have user input to adjust the 3 parameters that you mentioned. In a CPLD it would be harder but could still be done. Look for Xilinx , Altera, or Lattice for the CPLDs
 
As a programmer, you should enjoy micros. There is a strange satisfaction in seeing a LED flash because you typed a few lines on the keyboard.

Here is a Picaxe program to send five 1 second pulses with a 1 second gap between them, followed by a 3 second gap before repeating.
______________________________________________________

start:

For b1 = 1 to 5

High 2
pause 1000
low 2
pause 1000

next

pause 2000

goto start

___________________________________________________________

High 2 and Low 2 are switching output pin 2 to either 5 volts or zero volts out. These pins can supply up to 20 mA which is enough to drive a LED or the base of a switching transistor.

Pause 1000 means pause for 1000 milliseconds, or 1 second.
The last pause is 2000 mS because there is a 1000 mS pause at the end of the for-next loop, making 3 seconds.

You have probably written more complex programs than that.
 
Awesome info, guys. Definitely getting me on the right path here! Thanks a ton!
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K