I'm having some difficulties with my microcontroller homework and I was wondering if anyone could help, not looking for you guys to give me the answers (though I'd appreciate it) but im looking to have a better understanding of this. I'd appreciate any help given.
1. Create or find a program that uses an Arduino to find the frequency of an input signal. Does this program use interrupts? How does it do the counting?
2. Create or find a program that counts events using an external interrupt. The frequency of events is random (like customers entering and leaving a store).
3. Using the Timer1 library (Arduino Playground - HomePage), write code so a PWM signal of 2 kHz and 25% duty cycle will be present at pin 10.
4. Write code so a PWM signal of 250 Hz and 70% duty cycle will be present at pin 9.
5. Show a function prototype that does not return a value, receives two integers by reference, and doubles each integer.
6. There are different ways to convert the resistance of a thermistor into a temperature. One method is using the Steinhart-Hart equation. Do a little research on this equation. What do you need in order to use this equation? Where do you get this information? Is this an accurate equation?
7. Another equation is the Beta (β) equation. How accurate is this equation?
8. Research how the light sensor is hooked up for the Arduino control. What is the output of the sensor (volts, amps, range, etc)?
What kind of difficulties? Like the kind that happen when you wait until the day before the assignment is due before you start working on it?
If you’re honestly stuck, post the question and explain where your stuck. Show any work you’ve done. A simple Google search will give you either the answers or provide a very good starting point. If you have an actual question, ask away. The community will certainly help but don’t ask people to do your course work.
The datasheet will show you what peripherals the chip has available, and how they can be used. You might find one or two that look like they could be useful for this kind of thing.
See answer #1.
This is basically giving you the answer.
Datasheet!
Leaving aside that a function prototype wouldn't have a body to do any doubling in, this isn't even a microcontroller question, just a basic C/C++ programming one.
Question says itself to do your own research.
Beta equation for what? BJTs?
Also this one. There isn't one single the light sensor, there's a bunch. But I suppose that's what the question's asking you about too.
Other than linking you to the datasheet (which should have been part of whatever class is giving you this homework anyway, or a prerequisite), there's really no other help I feel comfortable giving without compromising your study. None of these questions are hard.