Post Created date
Split received string and save in an array
Instead of reallocating memory, why not just create an array of 6 pointers, then use strtok() to find the comma and set the pointers to the start of the strings?   Also;...
Wednesday, 19 November 2014 - 15:29
Stepper Motor Help
How are you accelerating your steppers? You're probably accelerating too fast The good steppers uses a sine acceleration ramp. but a linear acceleration works ok too.   Once...
Monday, 17 November 2014 - 23:06
Strategy for measuring ADC input and using result in interrupt
I would have the ADC running free and check the level in the IRQ.   Then assert the IO pin and set a flag, and start a timer. in your main service loop, if you see the flag...
Monday, 17 November 2014 - 18:45
1 ms system tick, whats the concensus?
dang units, yes 976 hz no requirement for high accuracy, but no need to be inaccurate on purpose.   the output compare irq every 250 counts is plenty good
Sunday, 16 November 2014 - 02:35
1 ms system tick, whats the concensus?
theusch wrote: // Timer/Counter 0 initialization // Clock source: System Clock // Clock value: 250.000 kHz // Mode: CTC top=OCR0A // OC0A output: Disconnected // OC0B output:...
Saturday, 15 November 2014 - 06:04
elevator code for three floors
real help? You're SM is wrong, make it right. the Sm should not know what floor it's on
Friday, 14 November 2014 - 16:00
elevator code for three floors
You're going to have to do some sort of priority based traveling salesman algorithm. It's a non trivial implementation I'm sure, but I aint going to figure it out... Prioritize by...
Thursday, 13 November 2014 - 21:45
elevator code for three floors
Kartman wrote: I'd suggest that real lifts use a 'scoreboard' rather than a fifo. Basically an array of size n floors each with a flag. When someone requests a floor, the flag for...
Wednesday, 12 November 2014 - 14:59
elevator code for three floors
mado88 wrote:   keith v wrote:   the current floor is a variable. you need to add a FIFO to store the next floor to go to   I think your states are; Moving stopped...
Tuesday, 11 November 2014 - 18:03
elevator code for three floors
the current floor is a variable. you need to add a FIFO to store the next floor to go to   I think your states are; Moving stopped door open door closed    
Tuesday, 11 November 2014 - 16:28
elevator code for three floors
you def need to get the current floor number out of the code! floor number is a variable not codeable
Monday, 10 November 2014 - 20:46
elevator code for three floors
mado88 wrote:   awneil wrote:     mado88 wrote:  how to insert state machines   You don't "insert" state machines - you need to design your system as a...
Monday, 10 November 2014 - 20:38

Pages