ME 374 Mechatronics Lab
Section outline
-
Guidelines, Rules and Procedures
-
-
This is an overview of the system you are building for your first project. From day to day, you will be building each of the small components shown in the block diagram.
-
-
Pinouts, circuit diagrams, and other visuals that are helpful throughout the thermochamber project.
-
Note: ONLY CUT USE THE BNC CABLES IN THE BACK OF THE ROOM THAT HAVE ALREADY BEEN CUT FOR THIS EXERCISE!
-
-
Select desired voltage drop and current of diode based on 1) desired light level (use LED spec sheet) and 2) power/voltage available from source (use sources spec sheet). You can fry both the LED and part of the source by making the desired current larger than the item allows.
-
Grab a Mega and a Teensy for your use this semester.
-
We are not using this approach for this course.
If you are interested in learning about microcontrollers and coding in Assembly and C, this would be good to look into.
-
-
-
Now that you have written a fair amount of code for Arduino your code might start looking a little messy. A good way to keep your code neat and clean is to go to >Tools at the top of the Arduino environment and select Auto-Format. This will improve the readability of your code by making sure everything is indented properly.Â
-
View the video here:
We don't want you to disassemble a power supply because it could be dangerous, but if you did decide to do it remember to unplug the supply and discharge the capacitors by touching the green and black wires on the large ATX connector! We have added some photos from when we did it.
On the other hand you might wish to convert a computer power supply to a lab supply. Here are what others have done.
PLEASE DO NOT TAKE APART ANY WORKING POWER SUPPLIES. WE HAVE PLENTY OF SCRAP ONES TO USE FOR THE CHAMBER.
-
ATX Power Supplies
specifications, testing and conversion to lab power supply
-
-
Very basic explanation of how ideal operational amplifiers work and can be used.
-
Be sure to do mostly everything in this Powerpoint. A common test frequency in the audio world is a 1000 Hz.
-
-
-
Improving Set Point with Interrupts
We can use interrupts to detect whether or not a button has been pressed instead of constantly polling for a change. Below is some code that you can copy and paste into your existing code.
-
You need to determine the proper resistance value if this LED portion of the sensor does not already contain a resistor.
-
*Or with MATLAB. The goal is to visualize data collected by the Teensy/Arduino in pseudo-realtime
-
-
After creating an account with Adafruit, you can access facilities on Adafruit.io to control IoT devices from the web and send data to the web. You should have the Arduino send data to the Huzzah via serial communication. This data is what the Huzzah sends over to Adafruit.io.
-
-
When someone gets it works, please update the sample Arduino code
-
Look at Getting to cPanel Instructions for login information.
In sample code anywhere you see 427access.com use ais.sites.lehigh.edu and for the site IP address replace 209,217,224,101 with 128.180.3.172 (the current IP address of the server). This address can be checked in cPanel on the left under "shared IP address"
-
-
Learn how to could a microcontroller in C. Ideas work on all microcontrollers.
-
-
A tutorial for designing and simulating circuits in Altium.