top of page

PCOMP 004

Updated: Jan 12, 2022

Project 1


For project1 Echo and I worked together to make two outcomes. The first is a fortune teller, and the second is a traffic lightbox. While doing these two works, Echo and I found it’s exciting to cooperate and help each other with our skills. (Thanks, Echo!!!)


NO.1 Fortune teller(Sexy Prophet)

The first work is based on Echo’s obsession with magical stuff. We wanted to build something like a magic wand. But didn’t figure out ways to make it come true based on the knowledge we’ve learned so far, and also didn’t know how to put all the electronic components into a small space like a wand. We decided to make a fortune teller (prophecy box) at last. Two of the most important electronic components that we used are photocell resistor(analog input) and LCD screen(digital output).


1. Electrical Components:

( Breadboard*1, Photocell resistor*2, Potentiometer*1, LCD screen*1, Resistors, Dupont threads )


2. Circuit:

(Reference)

We found some reading materials about how to connect the LCD screen on the Internet.

Although this picture looks nice and neat, with the increase of threads, it can be easy to make mistakes actually. Echo and I spent hours to debug and building the same circuit on the different breadboards.

3. Code:

We used a photocell resistor to control the LCD screen. Photocell resistor provides analog input; if analog input goes down, which means the user has touched the box, a random answer will be shown on the LCD screen. If the analog input doesn’t change, “Questions?” will be shown on the screen.


4. Outlook:





NO.2 Traffic lightbox

The second work is based on my thoughts on traffic lights. My basic idea is to use a range sensor to detect whether there is somebody crossing the road when the red light is on and output the alarming sound if it wants to break the traffic rule.


1. Electrical Components:

( Breadboard*1, Range sensor*2, Speaker*1, LED lights*3, Resistors, Dupont threads )


2. Circuit:

(Reference)


The circuit of this work is not challenging, but when I tried to put it into a container, everything became tuff. The threads of the speaker were so fragile that they kept breaking away from the circuit. Every time I change its position in the container, the volume, and the pitch will also change.


3. Code:


We used a range sensor as the digital input to control the speaker. The speaker turns on when the red light is on and only outputs sound when there’s a distance change.


4. Outlook:






​ ​ ​






4 views0 comments

Recent Posts

See All
bottom of page