#106
HTML-код
- Опубликовано: 18 окт 2024
- In this tutorial, I discuss the Arduino sin() command using a few different Arduino programming technics.
If you enjoy the content considering donating a cup of coffee at ko-fi.com/chea...
You can sort and find videos better on at www.cheapcontrols.com
I have started a group on Facebook to make it easier to interact with user-requested videos. Consider looking it up. www.facebook.c...
That is the absolute 1st time anyone explained what a radian is so succinctly. I only understood radians by comparing to degrees before this. Thank you and kudos to you!
Glad it was helpful! This is video is a bit older. The main reason I make these videos is for my own use. I forget stuff so fast that I need these as refresher videos. I am glad they helped someone else.
Exactly what I was looking for! Bookmarked, liked & subscribed!
I am glad it helped you out. Thanks for watching. I am in the middle of a move. I should be back to making videos soon.
Want to learn more in depth.
It would be better if u cover triangular wave just like this one.
Great work
I will look into that, thanks for the suggestion.
What a nice little tutorial, thanks so much!
Glad it was helpful!
@@CheapControls very, and you have such a nice slow paced style without getting boring.
Thank you for the kind words. I have always struggled to learn this stuff, when I make a video I make it so I can go back and watch it when I forget what I learned.
@@CheapControls Perfect strategy! I do the same at my work. But in PowerPoint 😁
With my next video I am going to start making it more into a training system. I will have the video on RUclips but I will have a short class on a moodle site I am setting up over on www.cheapcontrols.com At least I hope too. I do not have a lot of time but I may try a video every other week to accomplish this.
Thank you great learn from u also to know for 3 Phase 50 Hz sine wave generation with phase angle difference of 120 degree each other with arduino UNO output R Phae at pin no 7 , Y Phae at pin no 8 & B Phae at pin no 9. Thanks
This is a very interesting comment. I am currently without a shop. I recently moved and am just now setting up a place to work on projects. It will be a couple more weeks before I can experiment. If you want you can submit a comment on my website to make sure I don't forget.
I just put together a quick demonstration to expand his 1 phase to 3 phase. You just calculate the other phase positions from the primary phase.
You can run the simulation on Tinkercad to see it working. Click Code (top right), then Serial Monitor (bottom, under the code), and then Toggle Graph, to show the output graphically. Click "Start Simulation" get get it moving.
www.tinkercad.com/things/83HKHyQO4Va-arduino-3-phase-sine-wave-output/editel
I also put the code up on Pastebin, if you prefer that. It's the same code.
pastebin.com/c99x4nHJ
He uses 64 steps (0 to 63). 63/3 = 21. So add 21 to each, and wrap the value if over 63.
You will need to do your own timing work to get 50Hz from it. Probably a lot of millis() work. Calculate what y (ya) should be after the actual duration, rather than just incrementing it. That will protect from any latency in the hardware or your code, and correct for it by itself.
Thank you great learn from u How much frequency ?? Please
I m not sure what the frequency was of this video. Sorry. Thanks for watching
👏thank you
You’re welcome 😊
So this sine wil come out on any regular digital output??
No, this is for internal use only. digital outputs are only high and low. Analog I/O might work but I have never tried it. You would have to make sure your values fit to the analog I/O values.
Why 630 instead of 628?
Not sure, just a decision in the moment. Did you try 628? Thanks for watching.
Its a shame your description of Radians is so bad! (And wrong) Five and whatever is left? C'mon. You stated exactly how many radians in 360° at 0:52s. I couldn't get past 2mins.
Thank you for taking time to comment. You are a very intelligent person. I will study more and try to do better.