Post Created date
Toggle power on and off (standby) with a momentary switch
I'm assuming that this is a battery powered application ? In the past, I have used a low Q current D type flip flop configured as a T type to toggle when clocked. The PB switch...
Sunday, 11 August 2013 - 13:51
Combine two PWM outputs
It's certainly possible. Each PWM cycle can be programmed individually. By using the output compare and overflow interrupts for a particular timer, you can set the duty cycle for...
Sunday, 28 July 2013 - 14:09
Finding Frequency from Period, speed up process
You could re-scale your period timer so that it gives you a period in microseconds (20mS, 20000uS @ 50HZ). This will give you a 16 bit divisor over your frequency range. Then you...
Sunday, 9 June 2013 - 20:37
LM35 issue
You seem to have a mixture of polled code and interrupt code. Pick a method and go with it. For instance, in your ReadADC function, you wait for conversion complete. If you are...
Sunday, 6 January 2013 - 20:52
0 - 10V voltage source using PWM
Why not find a MOSFET that you can drive directly from the micro port line ? You could use a P-CH MOSFET for high side operation or an N-CH for low side operation. I would also...
Wednesday, 26 December 2012 - 13:46
atmega 328 ignition control
Have you considered changing your timer prescaler so that timer overflows do not need to be considered (even at the lowest RPM) ? Let's say that your RPM range is 600 to 6000RPM....
Thursday, 29 November 2012 - 04:40
Attiny 44 PWM power transistor overheated
Once again, put an ohmmeter across your 120W bulb, and let us know what you read. Then, calculate your peak current (Ipk = 12V/bulb resistance). Is this within the rating of your...
Wednesday, 10 October 2012 - 22:34
Dynamic Allocation of 2 dimensional array
So let's see, you have this huge pile of RAM that you want to dynamically take a piece of, then return to the "OS" when you're done ? Sounds interesting. How much RAM do you have...
Sunday, 30 September 2012 - 23:20
How do you visualize your code?
A drawing program is very useful in creating visual aids for code development. These visual aids can be flowcharts, state diagrams, timing diagrams, etc. The amount of detail...
Thursday, 20 September 2012 - 03:39
16 bit adc to serial project
What are your input voltage requirements for the ADC ? * Positive voltages only, or Plus and Minus rails ? * Input voltage levels ? You are going to have to use an external ADC....
Saturday, 8 September 2012 - 16:50
help on eeprom write strategy
For these types of applications, we usually use a power fail circuit. This circuit monitors the "unregulated" DC power input, and warns the micro of an impending loss of power....
Saturday, 8 September 2012 - 12:46
N00b using mega48 ADC
Some modifications to your circuit has been made (see attached). 1. Change your current limiting resistor for your LEDs to a much higher value (approximately 715 ohms instead of...
Thursday, 23 August 2012 - 03:58

Pages