1 / 23

BLOGICS!

BLOGICS!. Using a Logic Circuit Simulator Pontifical Catholic University of Rio de Janeiro – PUC-Rio Introduction to Engineering – 2011.2 – ENG 1000 Coord: Prof Hugo Fuks – Class: 33A Lecture: Blogics! – Prof. Denise Filippo – 22.08.2011. Blogics!. Run Blogics!

Download Presentation

BLOGICS!

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BLOGICS! Using a Logic Circuit Simulator Pontifical Catholic University of Rio de Janeiro – PUC-Rio Introduction to Engineering – 2011.2 – ENG 1000 Coord: Prof Hugo Fuks – Class: 33ALecture: Blogics! – Prof. Denise Filippo – 22.08.2011

  2. Blogics! Run Blogics! Check the Environment, Sensors and Actuators tabs. What is there?

  3. Environment, sensors and actuators

  4. Blogics! Check the Logic and Wires tabs What is there? What do you think that Blogics! does?

  5. Environment, sensors and actuators • When it is bright, the LED is turned on. • When it is dark, the LED is turned off.

  6. Environment, sensors and actuators • When it is bright, the LED is turned on. • When it is dark, the LED is turned off.

  7. Environment, sensors and actuators • When it is bright, the LED is turned on. • When it is dark, the LED is turned off. What if we wanted to simulate the behaviour of a firefly?

  8. Logic gate: NOT • When it is bright, the LED is turned off • When it is dark, the LED is turned on.

  9. Logic gate: NOT with hardware • When it is bright, the LED is turned off • When it is dark, the LED is turned on.

  10. Logic gate NOT with programming • When it is bright, the LED is turned off • When it is dark, the LED is turned on. Lilypad Arduino

  11. Logic gate NOT with programming • When it is bright, the LED is turned off • When it is dark, the LED is turned on. if (sensorValue < 40) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); }

  12. And the firefly? • What if the light on turned on when it was dark, hot, dry, or bright, cold and over 100m of altitude, when no one was around, or in any condition when its speed was low? • It is good practice to simulate the circuit before building it with actual components!

  13. EXCERCISES Build the following circuit and see what happens Plays the buzzer when it is dry. Turns on a fan when it is dark and hot. Create your own!

  14. ANSWERS 2 Plays the buzzer when it is dry.

  15. ANSWERS 3 Turns on a fan when it is dark and hot.

  16. ANSWERS 4 Create your own!

  17. OTHERS The fan is turned on when it is dark, hot, humid and there is someone in the room.

  18. (cont)

  19. (cont)

  20. (cont)

  21. OTHER Fan is turned on if it is dark, hot and humid or if someone turns the switch on

  22. OTHER Turns on the LED when it is dark and someone is in the room

  23. Turns on the fan when it is hot and humid. OTHER

More Related