Hi, I'm new, and I read the intros and stickies. I'm an Arduino novice, but I'm not completely new to electronics nor computer science concepts. I'm a photocopier tech, so I do much more troubleshooting of robots using wiring diagrams and the DMM than thinking about electronics engineering theory and design, or coding. A long time ago I got an 2 year electronics based degree to repair office equipment, and I did at one point take the basic electricity, electronics, and digital electronics. I forgot most of it, but I never needed to use most of the theory, except Ohms Law. As far as coding, I've dabbled in Basic and C here and I'm good at it when I apply myself, but the idea of sitting in one place to make a living at it turned me off
That's more than you needed to know maybe, but I feel some need to somehow qualify my noob level, ha ha.
I dug out my Arduino Uno that I got years ago, but never used much to play around with. I have been furloughed from work and I am trying to keep my brain busy and my morale up by learning and doing stuff with electronics parts and Arduino Uno.
So, I got some semiconductors, etc. and took off on any random tangent in order to learn whatever.
So, one project was to wire up a basic astable multivibrator using a 555 timer IC. The simple way of doing this produces a square wave, but not at 50% duty cycle. The duration for on is longer than for off, that is.
Since I don't have a scope, I was wondering if I could leverage an Arduino input pin and the serial monitor or other code to time the duration of high (pulse width) and then compare to the duration of low, thus checking whether or not the duty cycle is exactly 50%. I realize this may shift slightly as the circuit heats up.
So, maybe use the micros() function perhaps?
I read this topic, "Demonstration code for several things at the same time." Demonstration code for several things at the same time - Project Guidance - Arduino Forum
This thread is a beast, but I appreciate the example code and concepts discussed. I have not fully understood the code yet, but I uploaded it to my Uno and wired up the circuit, except I left off the servo since I don't have one.
The LEDs attached to pins 11, 12, and 13 blink as intended, but the press of my momentary switch caused the LED on pin 10 to blink, not stay on or off. That being said, since that post was for newbies, a circuit diagram would be very helpful to ensure I wired it correctly.
Another thing I would suggest, and that has been suggested to me in programming classes, is to comment even more for the benefit of newbies. For example, it would be great to see comments when += is used for compound addition as to what is going on and why. Don't think more comments is overkill, and try to pretend a newbie doesn't know anything.
Now the 555 timer blinks an LED in my circuit, which I removed and then fed the output to the Arduino as an input instead of a switch in a 8 segment LED "rolling dice" demo. So, it rolls the die every time the waveform goes low on a CA 8 segment LED display.
I kept the resistor (220 ohm) on the output when I removed the LED. Should I make the input pin on the Arduino an input/pullup for this or just input?
Let me know if you need more information, and thanks for reading.'
Take care, and have a great day,
Thanks,
Leif
