Jada’s Status Report – 4/27/24

This week, I was able to fully integrate the servo motor as the locking mechanism. Quite a bit of iteration was required in getting the code to work, but I was also able to implement a locking function whereby the servo will move to the locked position whenever the “*” button on the keypad is pressed. This can be done at any point in the system, allowing for the user to lock their door easily. I also did research on linear actuators to attach to the servo motor to exhibit more of a “locking” behavior during the public demo next week. With Brooke, we 3D printed a linear actuator that I found on Thingiverse .

I also presented the final presentation, which took a bit of time to prepare for at the start of last week, in addition to losing two class periods to listening to presentations. Earlier this week, I also helped Brooke with choosing new materials for the mat after running into issues with materials flexing too little or too much. During this time, we consulted one of the wood shop operators in Techspark as well as my father, who works with polyurethane, to get an opinion on what materials and pliability we should be aiming for.

The other main thing I have been working on was testing and integrating a new DAC-amp module that Brooke ordered. During initial testing, I believe I found a hardware malfunction and read of a shortcut on an online forum that will circumvent this issue. This worked in testing the sound quality and amplification ability (which is much better than the amplifier circuit I built earlier), however, the functionality of choosing songs and setting the volume still does not work, as the shortcut does not address the main issue of connecting properly. This is an issue, as it won’t allow for song selection, will shuffle through the mp3 files endlessly, and is much too loud for our application. I am going to ask Brooke to take a look at it tomorrow, although I don’t plan to spend much more time on it, as the amplifier circuit works fine enough for the demo.

By Monday, I will settle either on the DAC-amp module or the amplifier circuit so that I can laser-cut the final lock housing and secure the servo in its linear actuator. I will also integrate the new BT module that Zoe ordered to work with the mat’s BT signal (this module is different from the one I originally tested, but did not work for Zoe in testing communication between the Seeed and the lock module).

I definitely feel that I am behind schedule, due to these new modules I am trying to implement not allowing me to finish the lock housing and work solely on the mat with Brooke. This week will be spent getting everything put together for the demo. As mentioned above, I will have settled on the lock electronics and cut out the housing by Monday. I will also be helping Zoe with the poster that is due Tuesday, and working with Brooke to produce the video by Thursday.

Jada’s Status Report – 4/20/24

For the past two weeks, I have ordered additional parts that should bring the lock sub-system to completion. This included amplifier transistors, more robust speakers, and servo motors. Addressing the most pressing issue of the lock over the last two weeks, the lack of speaker amplification, I used an example circuit, the amplifier transistor I ordered, and various resistors and capacitors sourced from the 18-220 lab to build an amplifier circuit, modifying the resistance and capacitance values in attempts to improve the overall sound quality and volume. There is still some room for improvement here, and I hope to reach out to Prof. Sullivan to discuss possible adjustments if time permits. If I don’t have time, and since this is now a lower-priority item, the current speaker setup is sufficient for the final demo. I also added an elementary “song selection” function to the main lock code to select from different songs that are stored on the microSD card. In terms of testing the speaker, I downloaded a decibel reader onto my phone and checked for a safe reading (<75dB) at 6″, 1′, 2′, and 3′ away from the speaker, uncovered. All were under 75dB, and the 6″ reading is included in the images below.

Addressing the issue of the solenoid lock not having sufficient power and being an unclear indicator of the lock being locked or unlocked, the servo motor will soon replace the solenoid. The servo requires much less power and does not need constant power to be “unlocked”, meaning the system can be more efficient. It is also easy to make more clear with the servo what is “locked” and what is “unlocked.”

Another key item I began was testing possible coverings for the keypad to add another layer of security. With Brooke’s help, I was able to 3D print a 0.5mm thick sheet to tape over the keypad and hide the numbers. While the keypad still functions fully with this cover, I am unsure if it will be implemented in the final demo.

Every module needed for the lock is now physically added to the main circuit, aside from the servo which will replace the solenoid tomorrow. My next steps will be to move the amplifier circuit to a much smaller breadboard to consolidate space, solder any connections that I haven’t done yet,  laser cut a box to act as a housing for the lock electronics, and 3D print a small part to connect to the servo and act as the lock piece that moves in and out. I am not a mechE, however, so I doubt I will be able to create a simple box or door to accompany the lock in a sufficiently short amount of time.

All of these tasks can be completed in this upcoming week, so I feel that I am on track to completing my tasks for the project. However, I am concerned about testing the full BeatLock system, as we are still working on connecting the three sub-systems. To catch the team up this week, I’m hoping to have the lock completely ready at the beginning of the week for Zoe to work on the Bluetooth functionality when she is ready to work on the connection between the mat and the lock.

Additional Considerations: Learning Strategies

As I have gone throughout this process of creating the lock subsystem this semester, I have gained new knowledge about how to work with Arduino, specifically the Uno R3, its specific architecture, and how to be flexible with finding modules to accommodate it, such as the Bluetooth and microSD card reader modules. My strategy throughout the semester for each new addition has been to read datasheets when available to get a sense of different design parameters and how the item generally functions, then to move from that to looking for examples of the item being used, either through reading through example code to get an idea of function or through videos of someone walking the viewer through an example circuit with the item used. From here, I tend to debug and optimize, using strategies such as googling Arduino IDE errors for understanding, reading forums when I run into specific hardware issues, and even downloading multiple libraries to try to get a specific component working. I have also learned through the short time span of this class that while certain ideas in theory will work best, when trying to debug for two weeks leads nowhere, it is time to pivot and choose another plan; this can specifically be seen in my attempts at getting the Seeed Xiao to work and switching to the Arduino Uno R3 after being unsuccessful.

Jada’s Status Report – 4/6/24

This past week, I have been working on the Bluetooth module and the microSD card module. I was able to solder speaker connections to the Bluetooth module as well as manipulate two audio files for testing the system; however, I’ve run into two problems that set me slightly behind schedule. Once the microSD card module and microSD cards arrived, I had some difficulty finding an SD card adapter until this morning (Saturday); once I had the adapter, getting test song mp3 files downloaded and wiring the microSD card module for testing was straightforward. The other, still standing, issue I’ve run into is getting the Bluetooth module to see the files that are on the microSD card. I believe the current library for the Bluetooth module was made for a specific adaptation of an Arduino Uno that includes built-in memory, so I’m currently researching how to get the BT module to reach the files. One step I’ve made towards getting this working is verifying that the microSD card module works; I found that Arduino has built-in example code for memory cards, which can both verify that there is a connection to the card as well as list files on the card (as seen in the photo at the bottom). I plan to take time tomorrow to learn from the example code how to see the files so that I can copy the paths for the BT module.

Another potential issue that may come up once I solve the file issue is wiring the speaker to the BT module since it has a useful audio function library. In the diagram given for the BT module, there are three connections (GND, VCC, and DACL) going from the BT module to the speaker; however, our current speaker only has two connections. This may be as simple as wiring only GND and DACL, but I won’t know until after I can get the BT chip reading from the SD card.

Because of these main issues, my progress is slightly behind schedule. To catch up, I plan on working most of tomorrow to get the BT and microSD card communicating, and maybe testing my speaker hypothesis if I have time. If the speaker doesn’t work, I will look for a speaker to order.

This upcoming week, I hope to have the speaker, microSD card module, BT module working together. After this, I hope to have these items integrated into the main lock system as well as begin testing the BT connection between the app and the lock.

Additional Discussion

In terms of verification of the lock subsystem, I have tested or plan on testing the following measures:

  • Keypad functionality – this was completed by hardcoding a correct PIN and verifying that the keypad outputted a “correct” signal when the correct PIN was entered.
  • Solenoid lock functionality – this was completed by connecting the solenoid to the 5V pin of the Arduino and verifying that it unlocked when powered.
  • Bluetooth connection – this was initially confirmed by connecting my iPhone to the module without the rest of the system. Better validation will come by testing the connection between app/lock, and mat/lock.
  • Audio quality and level – this will be verified in two parts. Quality will be qualitatively measured by listening to the audio files through my laptop and comparing to the audio quality from the speaker. Level will be measured hopefully through a decibel reader, likely through a downloaded phone app.

Jada’s Status Report – 3/30/24

This past week, I mainly continued work on the lock, solidifying our use of the Arduino Uno by continuing to research compatible Bluetooth and microSD modules for the Uno, writing up an updated wiring diagram (as shown below) to visualize the potential additional parts, and ordering the Bluetooth and microSD slot modules as well as 2GB microSD cards.

Beyond this, I was able to get the Bluetooth module running after downloading its respective library and example code. Surprisingly, my iPhone was able to discover and connect to it in this initial testing (as shown below). I also assisted Brooke with laser-cutting the boards necessary for the mat construction. Fun fact:  the Rabbit lasers in Ideate are superior to the Techspark Rabbit lasers (good to know, but not a fun walk with heavy items).

I feel that I am a bit behind schedule, as Bluetooth is not integrated into the system yet. As long as Zoe and I can get the lock and the app communicating by the end of this week, I should be in a much better place, as getting song selection set up and a 3D-printed container for the lock *should* be relatively straightforward and not too time-consuming.

By the end of next week, I hope to have Bluetooth between the app and lock completed, including soldering the BT module for speaker connection. After that, if the microSD cards and module come in quickly, I will begin working on getting songs loaded and playing through the lock.

 

Also, Happy Easter!

Jada’s Status Report – 3/23/24

This week, I ended up spending more time on the door lock than anticipated last week. Due to the interim demo coming up on April 1st, I wanted to get the lock to a more functional state in relation to the rest of the system; meaning that I needed to figure out Bluetooth, power for the device, setting up the speaker, and figuring out a solution for storing the songs on the device. The majority of the week thus was spent researching how to get the Seeed microcontroller to work with the keypad. After hours of researching and testing different libraries and methods, I was still unable to make a successful switch to the Seeed and therefore pivoted to researching different Bluetooth and microSD storage modules to use with the Arduino Uno R3 that currently works with the keypad and solenoid lock. However, I did make a small victory, successfully integrating a simple speaker and a short tune into the main Arduino script, as seen in the picture at the end.

Two main issues have come up in researching these alternatives to the Seeed, one being having enough of the necessary pins on the Arduino to operate the various modules, and the other being power consumption. There appear to be multiple modules needing to use the same clock pin, which I am uncertain about dealing with. And the issue of power doesn’t seem like it can be solved with a couple of AA batteries in series, as even four AAs only get the Arduino to 6V, where it needs 7-12V. This is a minor issue for the interim demo compared to getting Bluetooth and song storage figured out, as these are more important to demonstrate that the product will be complete by the final demo.

I currently feel that my progress is behind, due to the uncertainty about which parts I need to order. The main issue is that the parts needed for the lock change depending on whether we stick with the Arduino or continue to try to get the Seeed to work. To catch up this upcoming week, I plan to solidify what microcontroller I will use for the lock and order the necessary modules, minus the battery power supply.

Next week, I hope to have ordered the necessary parts to finish the lock, minus the battery power supply. While waiting for the parts to arrive, I can update the CAD model for the door lock housing and begin to figure out how the electronics will be placed in their final position. I may also look into designing a PCB to replace the breadboard and cut down on the size of the door lock, as well as researching a servo motor to replace the solenoid, as I found that the solenoid doesn’t truly lock.

Jada’s Status Report – 3/16/24

This week, I completed the door lock without wireless capabilities, adding the solenoid lock so that there is locking and unlocking at the entry of a correct PIN (123456#), as seen in the photos below. Also pictured below are the demo boards I created for the dance mat. I am taking an Ideate course this semester and have access to the laser cutters and 3D printers as well as a healthy scrap materials bin; because of this, I was able to go between classes and laser cut two 9″ squares out of scrap 3mm plywood, at no cost to our team. The two squares are to be the top and bottom of a single foot pat, sandwiching the four FSRs that are placed in each corner.

I was unable to switch the Arduino in the door lock to the Seeed microcontroller, however, we have determined this step to not be a priority and will switch this if we have time after the interim demo on April 1. Since the Arduino shouldn’t affect the system aside from an increased size in the door lock 3D printed casing, it will be of little consequence to leave it as is for the final version of the product if need be. Brooke and I are slightly behind in constructing the mat, as we started laser cutting and 3D printing this past Thursday; however, once we have one foot pad working it should be relatively simple to make the other foot pads as well as the mat to hold them. To get back on schedule, I will be exclusively working on the mat this week with Brooke.

Since I have finished the basic form of the lock, I will be transitioning to helping Brooke with assembling and testing the dance mat this upcoming week, as mentioned in the prior paragraph. We are hoping to have one dance foot pad assembled and in testing by the end of next week. If I have some additional downtime during the week, I would also like to make the door lock functionally more robust and begin researching a battery that will supply the lock.

Jada’s Status Report – 3/9/24

Since the last progress report, I have temporarily switched the Seeed microcontroller to an Arduino to get the starter code for the keypad to work. Getting the starter code to run has allowed me to begin building off of it to create what we need for our door lock to meet functionality. Because the past week has been spring break, I have not had access to the components to test new iterations of the code, however, this will be tested as soon as I return to Pittsburgh this Monday. The main areas of modification include receiving the correct number of digits, checking the input pin against a “correct” pin, allowing the “lock” button to bypass a pin input, and outputting a signal to the lock solenoid upon receiving the correct pin. The two images included show progress made before we left for spring break.

I believe I am still on schedule; however, this is contingent on the time it takes to switch back to the Seeed microcontroller this upcoming week.

By the end of next week, I expect that the door lock should be completely functional, minus wireless capabilities.

Jada’s Status Report – 2/24/24

At the beginning of this past week, I worked primarily on researching the dimensions of the parts that we requested, as they had not been ordered until Tuesday. I used these dimensions to begin mocking up a CAD model of the door lock cover that will house the electronics for the door lock, as seen in the first image below. Before I move to 3D printing the door lock cover, I want to test the door lock electronics and get them to a functional state so that I can 3D print with certainty that the parts we use will fit in the 3D print. Thankfully, the door lock parts came in Thursday so that I could begin testing and assembly. Friday and Saturday were spent breadboarding the keypad and Seeed Studio Xiao microcontroller as well as beginning to write code for the microcontroller, as seen in the last two images. I had to spend most of the time researching how to get the right board onto the Arduino IDE and what libraries I needed for the I2C communication between the keypad and microcontroller, as I have very little (or fading) experience with how to use I2C. I ended today (getting kicked out of Techspark at 6 pm is too early) writing a simple test script using the Wires.h library to test my current understanding of how to retrieve the information being passed from the keypad. This is so that I can build upon this with the actual functionality we require once I gain an understanding of how to code the basics.

I feel that I am currently on schedule. According to the Gantt chart, Brooke and I should have had the PCB design almost done at this point; however, we decided to push this back and move up the testing and assembly of the lock and mat, as that is a higher priority.

Next week, I will be continuing to work on the door lock, getting a working script written for the microcontroller to talk with the keypad that can be modified to include communicating with the mat once it has also been made. If I can get the simple script written before spring break, I think I will be in a good place for when we return in March.

Jada’s Status Report – 2/17/24

This week, I accomplished getting parts ordered for the door lock. Brooke and I collaborated on determining the best parts to get, ensuring they should work together properly based on given part specs, and looking for the best vendor to order from. Our biggest concern at this point is getting to testing on time, so we chose to order with Amazon due to prime shipping instead of choosing the cheaper vendor option. I also created the door lock and dance mat diagrams for the design review presentation that will be next week.

My progress is on schedule. As long as the parts ordered this week come early next week, my task next week will be to begin assembly of the door lock and write simple code to check functionality.

Jada’s Status Report – 2/10/24

Progress on the project has been less quantifiable, as we are still figuring out what mechanisms and processes we want to use and want the user experience to be like- knowing that the hardware that we decide on now will determine the user experience at the end of the project. Brooke and I discussed different methods of two-factor authentication, backup methods of door entry, and the various hardware methods we can implement in the door lock. We also attended a meeting with Lorrie Cranor about ideas to consider in ensuring our door lock, mat, and app will be a secure (and more secure than current options) method of door locks.

This upcoming week, I hope to work closely with Brooke to get the parts list created so that we can begin building and testing.