This shows you the differences between two versions of the page.
|
pm:prj2026:jan.vaduva:andreea.radu2107 [2026/05/09 23:46] andreea.radu2107 created |
pm:prj2026:jan.vaduva:andreea.radu2107 [2026/05/09 23:59] (current) andreea.radu2107 [Pins Layout and Utilization] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Interactive Defusal Simulator ====== | ====== Interactive Defusal Simulator ====== | ||
| + | ^ Author | Andreea Radu | | ||
| + | ^ Series and Group | 331CB | | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| Line 59: | Line 61: | ||
| ==== Block Diagram ==== | ==== Block Diagram ==== | ||
| + | |||
| + | {{ :pm:prj2026:jan.vaduva:block_diagram.jpeg?700 |Block diagram}} | ||
| The LCD is used to guide the user through the game by displaying the current instruction, the remaining time and the final result. The buzzer is used both for feedback and for the memory mini-game. The LEDs show the current status of the device, such as armed, warning, error or defused. The servo motor is used only after a successful defusal, when it opens the physical flap. | The LCD is used to guide the user through the game by displaying the current instruction, the remaining time and the final result. The buzzer is used both for feedback and for the memory mini-game. The LEDs show the current status of the device, such as armed, warning, error or defused. The servo motor is used only after a successful defusal, when it opens the physical flap. | ||
| Line 111: | Line 115: | ||
| ^ ATmega328P Signal ^ Connected Component ^ Usage ^ | ^ ATmega328P Signal ^ Connected Component ^ Usage ^ | ||
| | VBUS | Power bank / USB supply | Main power input through Micro USB | | | VBUS | Power bank / USB supply | Main power input through Micro USB | | ||
| - | | VCC_TARGET | VCC rail | Power for external modules | | ||
| | GND | GND rail | Common ground | | | GND | GND rail | Common ground | | ||
| | PC4 | LCD SDA + MPU6050 SDA | I2C data | | | PC4 | LCD SDA + MPU6050 SDA | I2C data | | ||
| | PC5 | LCD SCL + MPU6050 SCL | I2C clock | | | PC5 | LCD SCL + MPU6050 SCL | I2C clock | | ||
| - | | PD2 | DHT11 DATA | Temperature sensor input | | + | | PC3 | DHT11 DATA | Temperature sensor input | |
| | PD3 | Passive Buzzer | PWM sound output | | | PD3 | Passive Buzzer | PWM sound output | | ||
| - | | PD4 | TTP223 Touch Sensor OUT | Touch input | | + | | PD2 | TTP223 Touch Sensor OUT | Touch input | |
| - | | PD5 | RGB LED - Red | LED output | | + | | PC2 | RGB LED - Red | LED output | |
| - | | PD6 | RGB LED - Green | LED output | | + | | PC1 | RGB LED - Green | LED output | |
| - | | PD7 | RGB LED - Blue | LED output | | + | | PC0 | RGB LED - Blue | LED output | |
| | PB0 | Keypad R1 | Keypad row | | | PB0 | Keypad R1 | Keypad row | | ||
| - | | PB1 | SG90 Servo | PWM servo control | | + | | PB4 | SG90 Servo | PWM servo control | |
| - | | PB2 | Keypad R2 | Keypad row | | + | | PB1 | Keypad R2 | Keypad row | |
| - | | PB3 | Keypad R3 | Keypad row | | + | | PB2 | Keypad R3 | Keypad row | |
| - | | PB4 | Keypad R4 | Keypad row | | + | | PB3 | Keypad R4 | Keypad row | |
| - | | PC0 | Keypad C1 | Keypad column | | + | | PD4 | Keypad C1 | Keypad column | |
| - | | PC1 | Keypad C2 | Keypad column | | + | | PD5 | Keypad C2 | Keypad column | |
| - | | PC2 | Keypad C3 | Keypad column | | + | | PD6 | Keypad C3 | Keypad column | |
| - | | PC3 | Keypad C4 | Keypad column | | + | | PD7 | Keypad C4 | Keypad column | |
| The LCD and MPU6050 share the I2C bus on PC4 and PC5. The keypad uses eight GPIO pins, including PC0-PC3 as digital inputs. The buzzer and servo use PWM-capable pins, while the RGB LED uses three separate outputs. The project is powered through the Micro USB connector from a USB power bank, and all modules share the same ground. | The LCD and MPU6050 share the I2C bus on PC4 and PC5. The keypad uses eight GPIO pins, including PC0-PC3 as digital inputs. The buzzer and servo use PWM-capable pins, while the RGB LED uses three separate outputs. The project is powered through the Micro USB connector from a USB power bank, and all modules share the same ground. | ||
| - | ==== Power Supply ==== | ||
| - | I want the project to work without being connected to a laptop, so it will be powered from batteries. The easiest and safest option is to use a **USB power bank**, because it already provides a stable 5V output. | + | ==== Electrical Diagram ==== |
| - | The power bank will power the ATmega328P Xplained Mini through USB. Since the servo motor can require more current than the microcontroller board can safely provide, I may power the servo from a separate 5V line from the same power bank or from an external 5V supply. In this case, all grounds must be connected together. | + | {{ :pm:prj2026:jan.vaduva:electric.jpeg?900 |Electrical diagram}} |
| - | The ON/OFF switch will be placed between the power source and the circuit, so the entire device can be turned on and off physically. | ||
| ==== Mechanical Design ==== | ==== Mechanical Design ==== | ||