Week 10: Output devices

 

Group assignment:

Measure the power consumption of an output device

My fabmate Pedro Chana and I measured the consuption of the ATtiny1614 board and the OLED display. You have it here.

Measuring the power consumption of the BLDC motor for my final project

Dealing with high power BLDC motors and Lithium batteries requires a good control of the current and power consumption. If you don't control them properly it can harm the motors and the battery. 

So I made a first test of the BLCD motor, connected to a power supply. This way I know that the current is going to be limited by the supply. 

As you can see, the currents goes up to 3 amps (on the display of the power supply), so the power consumption is 36V x 3 amps= 108 W. The battery I'm going to use is able to supply 30 amps, so the power will go up to 1 KW. 

Finally, I connected the BLDC motor to a battery (limiting the current to 1 amp), and I measured the current with an ampere meter clamp. It says 0.96 amps.

Individual assignment:

Add an output device to a microcontroller board you've designed, and program it to do something.

SAMD11 board controlling stepper motors

Two weeks ago I made a general purpose SAMD11 board and  I'm using it to control some external devices. I programmed it with the boatloader, so I could program it directly through the USB port. Here is the detail of the board production.

So, first thing, I checked the programming of the SAMD11 from the Arduino IDE through the USB port, selecting the following parameters:

I programmed a simple led blinking program to check everything works:

It worked well, with external and internal leds, so I went on to program an output device, a stepper motor.

I had a simple stepper from an Arduino kit, the 28BYJ-48, a low cost unipolar motor: