CE 4 something Fall 2023
Lab 1 Reverse Engineering Burner Alert - Part 1
Mason Brady
Email: mrbrady1@fortlewis.edu

Arduino Recreation

Introduction: This is the process of me reverse engineering the Burner Alert system. A small PCB designed to mount onto stove knobs and buzz every so often when the burner is on. In part 1 I am using an arduino uno, arduino buzzer, and an MPU6050 to understand the logic of the circuit before recreating it with other components.

Materials: Arduino Uno, Buzzer, MPU6050

Methods: I first wired the circuit by connecting the buzzer to a digital pin and wiring the I2C connections for the MPU6050. The circuit can be seen below in Figure 1.

Figure 1. Wiring of circuit

I than began by reading in the data from the MPU6050 via the wire library. This reads in the accelerations and converts them to G's (albeit improperly but it doesn't matter because it's all relative).

Figure 2. Get Acc data code.
The reason for feeding the data into an array is it means I don't have to keep track of the name of the variable I am using just the index which is less memory intensive and easier to code since we only ever need one axis of acceleration we have to find it on initilization by looking for the largest force (The axis pointing up). This initilizer can be seen below in Figure 3.

Figure 3. Acceleration data initialization.

Finally, we have to update the acceleration readings and then buzz if it is time. The delay can be changed and will need to for a product but testing with a 10 minute delay is impractical. The code for this can be seen below in Figure 4.

Figure 4. Checking for a change in acceleration and playing the tone.

A video of the working circuit can be seen below in Figure 5.

I am not sure how to get video to work so this will be put here tomorrow once I get max to show me

Future improvements beyond the new components are to check for a change in acceleration instead of a decrease to allow for mounting errors.