Arduino anybody? | Sololearn: Learn to code for FREE!

+2

Arduino anybody?

I was just Wondering if anyone here experiments with microcontrollers specifically Arduino?

10/5/2017 4:02:36 PM

Phoenix

8 Answers

New Answer

+5

@Phoenix you have to use OOP and millis (delay stops the whole microcontroller) Adafruit has a nice tutorial about that: https://learn.adafruit.com/multi-tasking-the-arduino-part-1/overview Beware that the "multitasking" could be a bit misleading but all in all it should work in your case.

+10

Thanks Phoenix for following me !

+6

@Seamiki. Thank you for pointing me in this direction and taking time to respond. I think this is what I'm looking for. will take some time to change my program to use this method but will give me what I need. thanks again

+3

I thought this question would be relevant here due to the fact that the programs are written in c/c++.

+3

Is this a demographic or you have something to ask?

+3

No, I have a question regarding timing functions. I'm not sure if my limitations are due to poor programming or hardware limitations. I was hoping to find someone smarter than me in this aspect. I already asked the smartest person I know and Google does'nt know. Or I don't know how to ask the right question either one. I just wanted to talk Arduino.

+3

My specific question I guess would be Can you output a pwm signal while procesing range readings from a sonar sensor? PWM signals are pausing while the timer reads sonar sensor??? Why cant I do both??? Program or hardware?

+3

I don't know much of arduino, but I'll ask a friend of mine who made some projects.