9. Output Devices.¶
Group Assignment: - Measure the power consumption of an output device. - Document your work on the group work page and reflect on your individual page what you learned.
Individual Assignment. - Add an output device to a microcontroller board you’ve designed and program it to do something.
Assignment Checklist.
item | Activity | Status |
---|---|---|
task 1 | Linked to the group assignment page. | IN PROGRESS |
task 2 | Documented how you determined power consumption of an output device with your group. | IN PROGRESS |
task 3 | Documented what you learned from interfacing output device(s) to microcontroller and controlling the device(s) | IN PROGRESS |
task 4 | Linked to the board you made in a previous assignment or documented your design and fabrication process if you made a new board | IN PROGRESS |
task 5 | Explained the programming process/es you used. | IN PROGRESS |
task 6 | Explained any problems you encountered and how you fixed them. | IN PROGRESS |
task 7 | Included original source code and any new design files. | IN PROGRESS |
task 8 | Included a ‘hero shot’ of your board. | IN PROGRESS |
Group Assignment¶
MEASURING EQUIPMENT AND INSTRUMENTS.¶
ADJUSTABLE SOURCE¶
Adjustable power supplies are devices capable of supplying electrical power to a circuit or component. Well, when we talk about an adjustable power supply, it is one in which the voltages can be adjusted within a certain range, and even the intensities. Depending on the need, for the example we will work with a UNI-T / UTP3315TFL source.
For a better understanding of the component, we will also attach the technical data sheet of the equipment.
MULTIMETER¶
Multimeters are measuring instruments that can measure quantities such as voltage, current and resistance. The measured values are displayed on a digital screen, allowing them to be read easily and directly. There are various brands and models, for example we have a UNI-T / UT39C. X
WORKSTATION¶
DIRECT CURRENT TEST MOTORS¶
INDIVIDUAL ASSIGNMENT.¶
Within the individual task we will use an output device, subject to the programming within the development board made with the SEEED XIAO RP2040 board, let’s see the section and code that is loaded within it.
Code Example¶
Use the three backticks to separate code.
/* Sweep
by BARRAGAN <http://barraganstudio.com>
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
https://arduino.cc/en/Tutorial/Sweep
*/
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(5); // attaches the servo on pin 5 to the servo object
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
LEARNING.¶
“The learning with the programming board obtained is that; We must correctly identify the connection pins, between digital and analog outputs of SEEED XIAO RP204. Then we must comply with defining in the programming, to have the correct outputs.”