Trace:
Differences
This shows you the differences between the selected revision and the current version of the page.
group2:electrical_proof-of-principle_outline 2008/12/09 02:33 | group2:electrical_proof-of-principle_outline 2008/12/09 13:51 current | ||
---|---|---|---|
Line 2: | Line 2: | ||
the photodiode detection of light, and the third is the serial communication with the | the photodiode detection of light, and the third is the serial communication with the | ||
microcontroller. | microcontroller. | ||
+ | |||
For the first test the microcontroller was programmed to emit four square wave signals, each | For the first test the microcontroller was programmed to emit four square wave signals, each | ||
connected to two BJTs, that provided current for a particular wire from the motor. The stepper | connected to two BJTs, that provided current for a particular wire from the motor. The stepper | ||
- | motor has two windings that generate an magnetic field when a current is passed through. By | + | motor has two windings that generate a magnetic field when a current is passed through. By |
alternating current through the two windings, the motor can be “stepped” at a desired rate. The | alternating current through the two windings, the motor can be “stepped” at a desired rate. The | ||
microcontroller will be sending waves with a period of half a second. These pulses causes the | microcontroller will be sending waves with a period of half a second. These pulses causes the | ||
Line 21: | Line 22: | ||
output data, and input data. Since there is no information going from the PC to the PIC, the input | output data, and input data. Since there is no information going from the PC to the PIC, the input | ||
data line will be grounded. The PIC will send out voltage pulses through the output line and the | data line will be grounded. The PIC will send out voltage pulses through the output line and the | ||
- | PC will receive these via a serial monitor. The serial monitor used is part of the PICC compiler | + | PC will receive these via a serial monitor. The program is coded with the printf command, and with |
- | software package. We have not yet devised a method to properly send signals through the RS232 | + | the help of the RS232 setting, any ASCII word can be transmitted to the PC. The serial monitor |
- | connection, so these signals will be unintelligible. | + | used is part of the PICC compiler software package. |
You are here: start » group2 » electrical_proof-of-principle_outline