Arduino anybody? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Arduino anybody?

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

5th Oct 2017, 4:02 PM
Phoenix
Phoenix - avatar
8 Answers
+ 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.
13th Oct 2017, 5:37 AM
seamiki
seamiki - avatar
+ 10
Thanks Phoenix for following me !
12th Oct 2017, 6:07 AM
Mattéo
+ 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
13th Oct 2017, 6:00 AM
Phoenix
Phoenix - avatar
+ 3
I thought this question would be relevant here due to the fact that the programs are written in c/c++.
9th Oct 2017, 2:55 PM
Phoenix
Phoenix - avatar
+ 3
Is this a demographic or you have something to ask?
9th Oct 2017, 5:16 PM
Dion
+ 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.
9th Oct 2017, 5:22 PM
Phoenix
Phoenix - avatar
+ 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?
9th Oct 2017, 5:34 PM
Phoenix
Phoenix - avatar
+ 3
I don't know much of arduino, but I'll ask a friend of mine who made some projects.
9th Oct 2017, 8:05 PM
Dion