My most active subscriber asked me to show how to make a calculator with circuits and so I begin that journey with this video. To make a calculator you need to understand Transistors as well as Transistor Gates. I make 4 circuits, one to demonstrate how transistors work as well as NOT, OR 7 AND Gates. The designs can be found below along with the code I used in this video.
If you like videos like this, consider donating $1, or simply turn off Ad Blocking software, which has made it very hard to earn enough to buy books and components.
Circuits Used
Code from the Video
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
const int voltBeforeTranIN = A1; const int voltAfterTranIN = A0; void setup(){ Serial.begin(9600); } void loop(){ int beforeTranVal = analogRead(voltBeforeTranIN); float beforeVoltage = beforeTranVal * (5.0 / 1023.0); Serial.print("Before Transistor : "); Serial.println(beforeVoltage); int afterTranVal = analogRead(voltAfterTranIN); float afterVoltage = afterTranVal * (5.0 / 1023.0); Serial.print("After Transistor : "); Serial.println(afterVoltage); Serial.println(); delay(500); } |
Leave a Reply