Raspberry Pi Pico and ADS1115-Based Smart AC Bulb Controller with DC Generator
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an AC Bulb, a DC Generator, a Raspberry Pi Pico microcontroller, an ADS1115 16-Bit ADC, and two resistors. The circuit is designed to interface the microcontroller with the ADC and other components to perform various functions.
Component List
AC Bulb
- Description: An AC bulb used for illumination.
- Pins: P, N
DC Generator
- Description: A DC generator used to generate electrical power.
- Pins: + PIN, - PIN
Raspberry Pi Pico
- Description: A microcontroller used to control and interface with other components.
- Pins: pin 1, pin 2, pin 3, pin 4, pin 5, pin 6, pin 7, pin 8, pin 9, pin 10, pin 11, pin 12, pin 13, pin 14, pin 15, pin 16, pin 17, pin 18, pin 19, pin 20, pin 21, pin 22, pin 23, pin 24, pin 25, pin 26, pin 27, pin 28, pin 29, pin 30, pin 31, pin 32, pin 33, pin 34, pin 35, pin 36, pin 37, pin 38, pin 39, pin 40, pin 41, pin 42, pin 43
ADS1115 16-Bit ADC - 4 Channel
- Description: An analog-to-digital converter used to convert analog signals to digital.
- Pins: A3, VIN, GND, SCL, SDA, ADDR, A+, A2, A1, A0, A-, ALRT
Resistor (20k Ohms)
- Description: A resistor with a resistance of 20k Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 20000 Ohms
Resistor (200k Ohms)
- Description: A resistor with a resistance of 200k Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 200000 Ohms
Wiring Details
Raspberry Pi Pico
- pin 40 is connected to ADS1115 16-Bit ADC - 4 Channel (VIN)
- pin 38 is connected to ADS1115 16-Bit ADC - 4 Channel (GND)
- pin 27 is connected to ADS1115 16-Bit ADC - 4 Channel (SCL)
- pin 26 is connected to ADS1115 16-Bit ADC - 4 Channel (SDA)
ADS1115 16-Bit ADC - 4 Channel
- VIN is connected to Raspberry Pi Pico (pin 40)
- GND is connected to Raspberry Pi Pico (pin 38)
- SCL is connected to Raspberry Pi Pico (pin 27)
- SDA is connected to Raspberry Pi Pico (pin 26)
- A0 is connected to Resistor (20k Ohms) (pin2)
- A0 is connected to Resistor (200k Ohms) (pin2)
- A1 is connected to Resistor (20k Ohms) (pin1)
- A1 is connected to AC Bulb (N)
- A1 is connected to DC Generator (+ PIN)
Resistor (20k Ohms)
- pin1 is connected to ADS1115 16-Bit ADC - 4 Channel (A1)
- pin2 is connected to ADS1115 16-Bit ADC - 4 Channel (A0)
Resistor (200k Ohms)
- pin1 is connected to AC Bulb (P)
- pin1 is connected to DC Generator (- PIN)
- pin2 is connected to ADS1115 16-Bit ADC - 4 Channel (A0)
AC Bulb
- P is connected to Resistor (200k Ohms) (pin1)
- N is connected to Resistor (20k Ohms) (pin1)
- N is connected to DC Generator (+ PIN)
DC Generator
- + PIN is connected to AC Bulb (N)
- + PIN is connected to Resistor (20k Ohms) (pin1)
- - PIN is connected to Resistor (200k Ohms) (pin1)
- - PIN is connected to AC Bulb (P)
Documented Code
Raspberry Pi Pico Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Raspberry Pi Pico Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code for the microcontroller.