Skip to main content

Week 4 (Sept. 19, 2018): Skimming through the Python Program


Today, after a visit from Colin, who was a tremendous wealth of knowledge as he was on the Small-Scale Controls team last year, I began sifting through the Python Programming in order to prepare for understanding how the Raspberry Pi operating the LCD touchscreen for user interface is programmed. I plan on taking the lead on the software aspect of the controls system, while David will be in charge of hardware for the most part. However, we will work together as much as we can as the two aspects are dependent on each other: the hardware cannot function properly with the software, while the software is useless if it has nothing to be implemented upon.

Last year’s Python code is found on the team’s Google document “Small Scale Controls ME 195B Term Paper” in Appendix 4 on page 55.

I was able to read and understand the first half of the program due to Python’s simple syntax as well as its similarity with Java, C, and Arduino. For example, the purpose of the first chunk of “if-elif” statements is as follows: if the XBee module has checked in a Station 1, display “01” on the LCD touchscreen. The XBee module is the wireless communication module used to communicate between the Arduino, located inside each podcar, and the Raspberry Pi, located inside the LCD touchscreen for the mobile application.
To make this happen, the RFID tag and receiver will determine if the pod car has arrived at that station; this signal will be sent to the Arduino in the pod car; the Arduino will communicate with the XBee module #1 attached to it; XBee module #1 will wirelessly communicate with XBee module #2 on the Raspberry Pi within the LCD touchscreen; lastly, XBee module #2 will tell the Raspberry Pi if the podcar is indeed at Station 1.

Comments

Popular posts from this blog

Week 30 (May 8, 2019): Prototype Evaluation Day, Final Circuit, Incorporating 3D printed parts, Final Presentation, Posters, & Maker Faire

Today, we held Prototype Evaluation Day. Like the rest of the senior project classes, the advisor walks around the classroom, evaluating the senior project apparatuses, asking the student teams to demonstrate their devices, and explain their design, though processes, and results. Dr. Furman and Ron examined and inspected the Full-Scale model, then the Half-Scale model, and lastly, us, the Small-Scale Team. We had completed our circuit to power one pod car and one of the two induction charging stations prior to Evaluation Day, so we were able to successfully demonstrate the pod car driving around the track as well as the induction charging. While we were still troubleshooting issues with the tablet’s Raspberry Pi communicating with the Arduino, the Arduino is still capable of operating on its own, so we could at least demonstrate the motor driving the pod car around the track and through the offline stations. Depicted below is our final circuit that powers the pod car: Dep...

Week 20 (Feb. 27, 2019): Power Electronics – Battery & Amplifier

Since last week, I have been working on the current amplifier for the induction charger. We decided to abandon using the TPS53313 step down voltage regulator-current amplifier IC (rated at a maximum of 6A continuous output current) because we found that supplying +5V to a 3.7V LiPo battery was possible and safe. Additionally, charging a LiPo battery at 6A was found to be dangerous; the battery should be charged at 25% of the capacity rating (.25 x C), or .25 x mAh. In the case of the 6600mAh battery, it should be recharged at a rate of 1.65A or less. The last reason is that dealing with a surface mount device (SMT) is a bit difficult. I started out using a BJT NPN transistor (model: 2N3904), something I was most familiar with. However, its datasheet states that it has a 200 mA maximum continuous collector current rating. This is a significantly low current. Most, if not all, fast charging adapters today have a 2 A charging rate. While I don’t want to charge the LiPo batteri...

Week 0 (Aug. 23, 2018): Beginning Spartan Superway

Hello, and welcome to my Spartan Superway blog! My name is Patrick Barrera, and I am a senior mechanical engineering student with a focus in mechatronics. Once I graduate, I hope to go into at least one of my areas of interest: electronics, programming, biotechnology, and machine learning. Some of my hobbies include staying in shape by working out and biking, doing DIY electronic and coding projects, and spending time with my family. Working on the Spartan Superway project interests me because I would like to be a part of the future ... the future of transportation, the future of technology, and the future of society. I like working in interdisciplinary teams, especially with focuses in mechanical design as well as mechatronics, because I am able to learn things from outside my areas of knowledge. I would also like to expand my knowledge and skill set into areas that I do not know, such as welding and other machine tools, and to get hands-on experience with the concepts I learned fro...