MAEB 20-21: Metabolic Systems: Information ========================================== ## Introduction We spend our lives interacting with systems and interfaces whose underlying technology we hardly understand not merely due to their complexity but also because they were intended to be closed by design. We will explore the internal components building everyday technologies and think how they can be used to create innovative building metabolisms that change the way we in habit. Each student group will develop a prototype of an intelligent building node capable of measuring and/or actuating on the environment. Nodes will communicate remotely to create logics and report data to a central dashboard. The module will take an experimental approach focused around tools for prototyping hardware such as Arduino, Sensors, Actuators and Raspberry Pis. ## Objectives The objective of the module is to bring students closer to the underlying technologies building nowadays systems to enable them to think out of the box and sketch in hardware their experimental building management systems. ## Methodology Each day will be dedicated to one topic and will be split into one or multiple introductory keynotes plus a hands-on session. During the hands-on session, each student group will develop a prototype of an intelligent building node. Each node will have a sensor and/or an actuator and will be able to communicate remotely to other nodes. The overall system data will be visualised on a central interface. For prototyping purposes, the nodes will be scaled down versions but will need to be fully working and interacting with the real world. Technically each node will be based around an ESP8266 microcontroller and will communicate using the MQTT protocol. A collection of sensors and actuators will be provided to pick from. A Raspberry Pi will be used as our small datacenter where logic and interfaces will be built using the Node-Red graphical environment. ## Schedule Each day will be dedicated to one key topic: * Information, computers and platforms * Sensors and actuators * Logics and protocols * Networks and interfaces * Building and testing <iframe src="https://docs.google.com/spreadsheets/d/e/2PACX-1vQR4sN35JkKB6XDIrqs5DDGFH65envz77iZ0qZY1lheZPsBipXOAFbU_tdp_1BGSEhWD3IOLqUIrOva/pubhtml?widget=true&amp;headers=false" frameborder="0" width="100%" height="600px" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe> ## Instructors * **Guillem Camprodon** * **Victor Barberan** * **Oscar Gonzalez** ## Materials All the electronics materials as development boards, sensors and actuators will be provided during the module. However, we encourage those already owning an Arduino Kit, a Raspberry Pi, etc. to bring it. **Bring in your laptop and any prototyping tools you have around such as a cutter, tape, markers, screwdrivers...** **:warning: All the provided materials will need to be returned by Friday after the module finishes** ### Books Below is an eclectic list of books that range from technology criticism, design principles towards hand on guides on building hardware and software. We choose them because we love them. [![](https://i.imgur.com/wptLD8P.jpg)](https://www.goodreads.com/review/list/70336932-pral2a?utf8=%E2%9C%93&utf8=%E2%9C%93&shelf=mdef-the-way-things-work&view=covers&title=pral2a&sort=rating&order=d&per_page=100) **Check the list in [Good Reads](https://www.goodreads.com/review/list/70336932-pral2a?utf8=%E2%9C%93&utf8=%E2%9C%93&shelf=mdef-the-way-things-work&view=covers&title=pral2a&sort=rating&order=d&per_page=100)** _**They are ordered from shorter to longer so you can start with a short reading essay in your busy schedule**_ _Some of the books can be found online for free, use google and archive.org_ **The Epic Struggle of the Internet of Things**, _Sterling, Bruce_. Strelka Press, 2014 (ISBN [9785906264305](https://www.goodreads.com/search?q=9785906264305)) 30 pages. **The Politics of Design: A (Not So) Global Design Manual for Visual Communication**, _Pater, Ruben_. BIS Publishers, 2016 (ISBN [9789063694227](https://www.goodreads.com/search?q=9789063694227)) 32 pages. **The Design of Scarcity**, _Goodbun, Jon_. Strelka Press, 2014 (ISBN [](https://www.goodreads.com/search?q=)) 44 pages. **Thing Explainer: Complicated Stuff in Simple Words**, _Munroe, Randall_. Houghton Mifflin Harcourt, 2015 (ISBN [9780544668256](https://www.goodreads.com/search?q=9780544668256)) 64 pages. **The Politics of Bitcoin: Software as Right-Wing Extremism**, _Golumbia, David_. Univ Of Minnesota Press, 2016 (ISBN [9781517901806](https://www.goodreads.com/search?q=9781517901806)) 100 pages. **Society of the Spectacle**, _Debord, Guy_. Rebel Press, 1967 (ISBN [9780946061129](https://www.goodreads.com/search?q=9780946061129)) 119 pages. **Introduction to Networking: How the Internet Works**, _Severance, Charles_. Charles Severance, 2015 (ISBN [](https://www.goodreads.com/search?q=)) 122 pages. **Getting Started with Arduino**, _Banzi, Massimo_. Maker Media, Inc, 2008 (ISBN [9780596155513](https://www.goodreads.com/search?q=9780596155513)) 128 pages. **Fifty Dangerous Things (You Should Let Your Children Do)**, _Tulley, Gever_. Tinkering Unlimited, 2009 (ISBN [9780984296101](https://www.goodreads.com/search?q=9780984296101)) 130 pages. **Shaping Things**, _Sterling, Bruce_. Mit Press, 2005 (ISBN [9780262693264](https://www.goodreads.com/search?q=9780262693264)) 149 pages. **Four Futures: Life After Capitalism**, _Frase, Peter_. Verso, 2015 (ISBN [9781781688137](https://www.goodreads.com/search?q=9781781688137)) 150 pages. **Operating Manual for Spaceship Earth**, _Fuller, R. Buckminster_. Lars Muller Publishers, 1969 (ISBN [9783037781265](https://www.goodreads.com/search?q=9783037781265)) 151 pages. **Vehicles: Experiments in Synthetic Psychology**, _Braitenberg, Valentino_. Bradford Book, 1984 (ISBN [9780262521123](https://www.goodreads.com/search?q=9780262521123)) 168 pages. **Ep, Vol. 2: Design Fiction**, _Gruijthuijsen, Krist_. Sternberg Press, 2019 (ISBN [9783956790485](https://www.goodreads.com/search?q=9783956790485)) 170 pages. **Platform Capitalism**, _Srnicek, Nick_. Polity, 2016 (ISBN [](https://www.goodreads.com/search?q=)) 171 pages. **Free Software, Free Society: Selected Essays**, _Stallman, Richard M._. Julian Yap, 2002 (ISBN [9781882114986](https://www.goodreads.com/search?q=9781882114986)) 186 pages. **Tomas Saraceno: Flying Plaza**, _Saraceno, Tomás_. Spector Books, 2018 (ISBN [9783959050296](https://www.goodreads.com/search?q=9783959050296)) 208 pages. **Troubleshooting Analog Circuits**, _Pease, Robert A._. Newnes, 1991 (ISBN [9780750694995](https://www.goodreads.com/search?q=9780750694995)) 217 pages. **Humankind: Solidarity with Non-Human People**, _Morton, Timothy_. Verso, 2017 (ISBN [9781786631329](https://www.goodreads.com/search?q=9781786631329)) 224 pages. **Making It: Manufacturing Techniques for Product Design**, _Lefteri, Chris_. Laurence King, 2007 (ISBN [9781856695060](https://www.goodreads.com/search?q=9781856695060)) 224 pages. **The Message Is Murder: Substrates of Computational Capital**, _Beller, Jonathan_. Pluto Press, 2017 (ISBN [9780745337302](https://www.goodreads.com/search?q=9780745337302)) 224 pages. **Think Like a Programmer: An Introduction to Creative Problem Solving**, _Spraul, V. Anton_. No Starch Press, 2012 (ISBN [9781593274245](https://www.goodreads.com/search?q=9781593274245)) 233 pages. **Future Histories: What Ada Lovelace, Tom Paine, and the Paris Commune Can Teach Us About Digital Technology**, _O'Shea, Lizzie_. Verso, 2019 (ISBN [](https://www.goodreads.com/search?q=)) 240 pages. **The Design of Everyday Things**, _Norman, Donald A._. Basic Books, 1988 (ISBN [9780465067107](https://www.goodreads.com/search?q=9780465067107)) 240 pages. **Otl Aicher**, _Rathgeb, Markus_. Phaidon Press, 2007 (ISBN [9780714869384](https://www.goodreads.com/search?q=9780714869384)) 240 pages. **Inventing the Future: Postcapitalism and a World Without Work**, _Srnicek, Nick_. Verso, 2015 (ISBN [9781784780968](https://www.goodreads.com/search?q=9781784780968)) 245 pages. **Arduino Development Cookbook**, _Amariei, Cornel_. Packt Publishing, 2015 (ISBN [](https://www.goodreads.com/search?q=)) 246 pages. **Wiring the IoT: Connecting Hardware with Raspberry Pi, Node-Red, and MQTT**, _Rogers, Lucy_. O'Reilly Media, 2017 (ISBN [9781491953334](https://www.goodreads.com/search?q=9781491953334)) 250 pages. **Technology as Magic: The Triumph of the Irrational**, _Stivers, Richard_. Bloomsbury Academic, 1999 (ISBN [9780826413673](https://www.goodreads.com/search?q=9780826413673)) 256 pages. **Wasting Time on the Internet**, _Goldsmith, Kenneth_. Harper Perennial, 2016 (ISBN [9780062416476](https://www.goodreads.com/search?q=9780062416476)) 256 pages. **The Hacker Ethic: and the Spirit of the Information Age**, _Himanen, Pekka_. Random House, 1999 (ISBN [9780375505669](https://www.goodreads.com/search?q=9780375505669)) 256 pages. **The Humane Interface: New Directions for Designing Interactive Systems**, _Raskin, Jef_. Addison-Wesley Professional, 2000 (ISBN [9780201379372](https://www.goodreads.com/search?q=9780201379372)) 256 pages. **Weapons of Math Destruction: How Big Data Increases Inequality and Threatens Democracy**, _O'Neil, Cathy_. Crown, 2016 (ISBN [9780553418811](https://www.goodreads.com/search?q=9780553418811)) 259 pages. **The Utopia of Rules: On Technology, Stupidity, and the Secret Joys of Bureaucracy**, _Graeber, David_. Melville House, 2013 (ISBN [9781612193748](https://www.goodreads.com/search?q=9781612193748)) 261 pages. **Building Blockchain Projects: Building decentralized Blockchain applications with Ethereum and Solidity**, _Prusty, Narayan_. Packt Publishing, 2017 (ISBN [](https://www.goodreads.com/search?q=)) 268 pages. **Unruly Places: Lost Spaces, Secret Cities, and Other Inscrutable Geographies**, _Bonnett, Alastair_. Houghton Mifflin Harcourt, 2014 (ISBN [9780544101579](https://www.goodreads.com/search?q=9780544101579)) 270 pages. **FAB: The Coming Revolution on Your Desktop–from Personal Computers to Personal Fabrication**, _Gershenfeld, Neil_. Basic Books (AZ), 2005 (ISBN [9780465027453](https://www.goodreads.com/search?q=9780465027453)) 278 pages. **The Grid: Electrical Infrastructure for a New Era**, _Bakke, Gretchen_. Bloomsbury USA, 2016 (ISBN [9781608196104](https://www.goodreads.com/search?q=9781608196104)) 288 pages. **Whole Earth Field Guide**, _Maniaque-Benton, Caroline_. Mit Press, 2016 (ISBN [9780262529280](https://www.goodreads.com/search?q=9780262529280)) 288 pages. **How We Got to Now: Six Innovations That Made the Modern World**, _Johnson, Steven_. Riverhead Books, 2014 (ISBN [9781594632969](https://www.goodreads.com/search?q=9781594632969)) 293 pages. **La silicolonisation du monde: l'irrésistible expansion du libéralisme numérique**, _Sadin, Éric_. L'Échappée, 2016 (ISBN [9782373090161](https://www.goodreads.com/search?q=9782373090161)) 296 pages. **Starting Electronics**, _Brindley, Keith_. Newnes, 1994 (ISBN [9780080969923](https://www.goodreads.com/search?q=9780080969923)) 296 pages. **Present Shock: When Everything Happens Now**, _Rushkoff, Douglas_. Current, 2013 (ISBN [9781591844761](https://www.goodreads.com/search?q=9781591844761)) 296 pages. **New Dark Age: Technology and the End of the Future**, _Bridle, James_. Verso, 2018 (ISBN [](https://www.goodreads.com/search?q=)) 304 pages. **Hacking Electronics: An Illustrated DIY Guide for Makers and Hobbyists: An Illustrated DIY Guide for Makers and Hobbyists**, _Monk, Simon_. McGraw-Hill/Tab Electronics, 2012 (ISBN [9780071802369](https://www.goodreads.com/search?q=9780071802369)) 304 pages. **Designing Reality: How to Survive and Thrive in the Third Digital Revolution**, _Gershenfeld, Neil_. Basic Books, 2017 (ISBN [9780465093472](https://www.goodreads.com/search?q=9780465093472)) 304 pages. **Catching Fire: How Cooking Made Us Human**, _Wrangham, Richard W._. Basic Books, 2009 (ISBN [9780465013623](https://www.goodreads.com/search?q=9780465013623)) 309 pages. **How to Diagnose and Fix Everything Electronic**, _Geier, Michael Jay_. McGraw-Hill/Tab Electronics, 2010 (ISBN [9780071744225](https://www.goodreads.com/search?q=9780071744225)) 316 pages. **Every Tool's a Hammer: Life Is What You Make It**, _Savage, Adam_. Atria Books, 2019 (ISBN [9781982113490](https://www.goodreads.com/search?q=9781982113490)) 320 pages. **The Shock of the Anthropocene: The Earth, History and Us**, _Bonneuil, Christophe_. Verso, 2013 (ISBN [9781784780814](https://www.goodreads.com/search?q=9781784780814)) 320 pages. **Biomimicry: Innovation Inspired by Nature**, _Benyus, Janine M._. William Morrow Paperbacks, 1997 (ISBN [9780060533229](https://www.goodreads.com/search?q=9780060533229)) 320 pages. **Mario Bellini**, _Morteo, Enrico_. Phaidon Press, 2015 (ISBN [9780714869452](https://www.goodreads.com/search?q=9780714869452)) 320 pages. **Cybernetic Revolutionaries: Technology and Politics in Allende's Chile**, _Medina, Eden_. MIT Press (MA), 2011 (ISBN [9780262016490](https://www.goodreads.com/search?q=9780262016490)) 326 pages. **The Mushroom at the End of the World: On the Possibility of Life in Capitalist Ruins**, _Tsing, Anna Lowenhaupt_. Princeton University Press, 2015 (ISBN [9780691162751](https://www.goodreads.com/search?q=9780691162751)) 331 pages. **Capitalism in the Web of Life: Ecology and the Accumulation of Capital**, _Moore, Jason W._. Verso, 2015 (ISBN [9781781689028](https://www.goodreads.com/search?q=9781781689028)) 336 pages. **From Counterculture to Cyberculture: Stewart Brand, the Whole Earth Network, and the Rise of Digital Utopianism**, _Turner, Fred_. , 2006 (ISBN [9780226817439](https://www.goodreads.com/search?q=9780226817439)) 339 pages. **Radical Technologies: The Design of Everyday Life**, _Greenfield, Adam_. Verso, 2017 (ISBN [9781786634498](https://www.goodreads.com/search?q=9781786634498)) 340 pages. **Making Things Move: DIY Mechanisms for Inventors, Hobbyists, and Artists**, _Roberts, Dustyn_. McGraw-Hill Education Tab, 2010 (ISBN [9780071741675](https://www.goodreads.com/search?q=9780071741675)) 350 pages. **Beautiful Data: A History of Vision and Reason since 1945**, _Halpern, Orit_. Duke University Press, 2014 (ISBN [9780822357445](https://www.goodreads.com/search?q=9780822357445)) 352 pages. **SUNBURST and LUMINARY - An Apollo Memoir**, _Eyles, Don_. Fort Point Press, Bostom, 2018 (ISBN [9780986385902](https://www.goodreads.com/search?q=9780986385902)) 357 pages. **Handmade Electronic Music: The Art of Hardware Hacking**, _Collins, Nicolas_. Routledge, 2006 (ISBN [9780415998734](https://www.goodreads.com/search?q=9780415998734)) 360 pages. **Fritz Kahn**, _Debschitz, Uta Von_. Taschen, 2009 (ISBN [9783836548403](https://www.goodreads.com/search?q=9783836548403)) 360 pages. **Free Culture: The Nature and Future of Creativity**, _Lessig, Lawrence_. Penguin Books, 2004 (ISBN [9780143034650](https://www.goodreads.com/search?q=9780143034650)) 368 pages. **Technology Choice: A Critique of the Appropriate Technology Movement**, _Willoughby, Kelvin_. Intermediate Technology Publications, 1990 (ISBN [9781853390579](https://www.goodreads.com/search?q=9781853390579)) 368 pages. **Make It So: Interaction Design Lessons From Science Fiction**, _Shedroff, Nathan_. Rosenfeld Media, 2012 (ISBN [9781933820989](https://www.goodreads.com/search?q=9781933820989)) 368 pages. **Building Open Source Hardware: DIY Manufacturing for Hackers and Makers**, _Gibb, Alicia_. Addison-Wesley Professional, 2014 (ISBN [9780133373905](https://www.goodreads.com/search?q=9780133373905)) 368 pages. **Quantum Computing Since Democritus**, _Aaronson, Scott_. Cambridge University Press, 2013 (ISBN [9780521199568](https://www.goodreads.com/search?q=9780521199568)) 370 pages. **The Master Switch: The Rise and Fall of Information Empires**, _Wu, Tim_. Knopf, 2010 (ISBN [9780307269935](https://www.goodreads.com/search?q=9780307269935)) 384 pages. **Robot in the Garden: Telerobotics and Telepistemology in the Age of the Internet**, _Goldberg, Ken_. Mit Press, 2000 (ISBN [9780262571548](https://www.goodreads.com/search?q=9780262571548)) 392 pages. **Dieter Rams: As Little Design as Possible**, _Lovell, Sophie_. Phaidon, 2010 (ISBN [](https://www.goodreads.com/search?q=)) 398 pages. **Raspberry Pi Cookbook**, _Monk, Simon_. O'Reilly Media, 2013 (ISBN [9781449365226](https://www.goodreads.com/search?q=9781449365226)) 414 pages. **To Save Everything, Click Here: The Folly of Technological Solutionism**, _Morozov, Evgeny_. PublicAffairs, 2013 (ISBN [9781610391382](https://www.goodreads.com/search?q=9781610391382)) 415 pages. **How the Internet Works (How It Works)**, _Gralla, Preston_. Que, 1991 (ISBN [9780789736260](https://www.goodreads.com/search?q=9780789736260)) 416 pages. **We-Think: Mass Innovation, Not Mass Production**, _Leadbeater, Charles W._. Profile Books(GB), 2009 (ISBN [9781847653895](https://www.goodreads.com/search?q=9781847653895)) 423 pages. **The Idea Factory: Bell Labs and the Great Age of American Innovation**, _Gertner, Jon_. Penguin Press, 2012 (ISBN [9781594203282](https://www.goodreads.com/search?q=9781594203282)) 432 pages. **Postmodernism, or, The Cultural Logic of Late Capitalism**, _Jameson, Fredric_. Duke Univ Press, 1991 (ISBN [9780822310907](https://www.goodreads.com/search?q=9780822310907)) 438 pages. **Adventures in the Anthropocene: A Journey to the Heart of the Planet we Made**, _Vince, Gaia_. Vintage, 2014 (ISBN [9780099572497](https://www.goodreads.com/search?q=9780099572497)) 448 pages. **Extraordinary Origins of Everyday Things**, _Panati, Charles_. William Morrow Paperbacks, 1987 (ISBN [9780060964191](https://www.goodreads.com/search?q=9780060964191)) 463 pages. **Fossil Capital: The Rise of Steam Power and the Roots of Global Warming**, _Malm, Andreas_. Verso, 2015 (ISBN [9781784781293](https://www.goodreads.com/search?q=9781784781293)) 496 pages. **Designing for Emerging Technologies: UX for Genomics, Robotics, and the Internet of Things**, _Follett, Jonathan_. O'Reilly Media, 2014 (ISBN [](https://www.goodreads.com/search?q=)) 504 pages. **The Technological Society**, _Ellul, Jacques_. Vintage, 1954 (ISBN [9780394703909](https://www.goodreads.com/search?q=9780394703909)) 512 pages. **The Innovators: How a Group of Hackers, Geniuses and Geeks Created the Digital Revolution**, _Isaacson, Walter_. Simon and Schuster, 2014 (ISBN [9781476708690](https://www.goodreads.com/search?q=9781476708690)) 542 pages. **User Centered System Design: New Perspectives on Human-Computer Interaction**, _Norman, Donald A._. CRC Press, 1986 (ISBN [9780898598728](https://www.goodreads.com/search?q=9780898598728)) 544 pages. **Real World Instrumentation with Python: Automated Data Acquisition and Control Systems**, _Hughes, John M._. O'Reilly Media, 2010 (ISBN [9781449396633](https://www.goodreads.com/search?q=9781449396633)) 622 pages. **Arduino Cookbook**, _Margolis, Michael_. O'Reilly Media, 2010 (ISBN [9780596802479](https://www.goodreads.com/search?q=9780596802479)) 662 pages. **Designing Interactions [With CDROM]**, _Moggridge, Bill_. MIT Press (MA), 2006 (ISBN [9780262134743](https://www.goodreads.com/search?q=9780262134743)) 766 pages. **Behave: The Biology of Humans at Our Best and Worst**, _Sapolsky, Robert M._. Penguin Press, 2017 (ISBN [9781594205071](https://www.goodreads.com/search?q=9781594205071)) 790 pages. **Practical Electronics for Inventors**, _Scherz, Paul_. McGraw-Hill Companies, 1998 (ISBN [9780071452816](https://www.goodreads.com/search?q=9780071452816)) 952 pages. **The Art of Electronics**, _Horowitz, Paul_. Cambridge University Press, 1980 (ISBN [9780521370950](https://www.goodreads.com/search?q=9780521370950)) 1152 pages. ### Sites * [hackaday.com](https://hackaday.com/) is one of the best blogs on DIY inventions and hardware hacking * [lowtechmagazine.com](https://www.lowtechmagazine.com/) many technology choices are political and economic, looking at past forgotten technologies helps us see the future * [news.ycombinator.com](https://http://news.ycombinator.com) is a social news website focusing on computer science and entrepreneurship. * [archive.fabacademy.org](http://archive.fabacademy.org/) 10 years of project from Fab Labs around the world. Sometimes hard to browse but inspiring! * [learn.adafruit.com](https://learn.adafruit.com/) a really good site for electronics and programming tutorials, especially for beginners * [instructables](https://learn.adafruit.com/) more and more DIY tutorials, sometimes aren't good but there's a lot ## Videos **The list will grow during the workshop!** :warning: Warning! Do not try to watch them all! Simply choose a topic you like and jump over the videos. Maybe you find something interesting and suddenly want to learn more about it. ### A brief history of information and computers * [Information Theory](https://www.youtube.com/watch?v=p0ASFxKS9sg&list=PLP6PHJ8SLR6D4ytpHhZBdylPNcazU5m7o) * [More on information Theory and Coding (for those who enjoyed the videos above)](https://www.youtube.com/playlist?list=PLzH6n4zXuckpKAj1_88VS-8Z6yn9zX_P6) * [How computers think](https://www.youtube.com/watch?v=dNRDvLACg5Q) * [Why we use binary](https://www.youtube.com/watch?v=thrx3SBEpL8) * [How computers work](https://www.youtube.com/watch?v=nN9wNvEnn-Q) * [How computer memory works the insides](https://www.youtube.com/watch?v=XETZoRYdtkw&t=6s) * [Colossus the first electronic computer](https://www.youtube.com/watch?v=knXWMjIA59c) * [How they design the computers they landed astronauts to the moon](https://www.youtube.com/watch?v=xQ1O0XR_cA0) * [UNIX or what an operative system does](https://www.youtube.com/watch?v=tc4ROCJYbm0) * [Looking at how things are built and work to learn how to design](https://www.youtube.com/playlist?list=PLvOlSehNtuHsy89OdSxBajult8e5srVLA) * [An introduction to Arduino towards future assignments](https://www.youtube.com/watch?v=_h1m6R9YW8c) ### How everyday machines work? _Washing machines, cars, fridges, vacum cleaners..._ * [The Secret Life of Machines](https://www.youtube.com/watch?v=KDpNQQqdSh8&list=PLByTa5duIolYRtq45Cz_GmtzfWJyA4bik) :::success **Documentation** [Linux/Raspberry Pi](https://hackmd.io/bonj05yPR4m8cFmS5lH_EQ?view) [ESP8266](https://hackmd.io/CbSh3HpeQF--1XAD09KxdA?view) [MQTT](https://hackmd.io/pRw9REf-TaqvDmGOIZ-Kpw?view) [Flowcharts](https://hackmd.io/lWOOHqzLQWC-tY0Siq_f5Q?view) [DSP notes](https://hackmd.io/9rdTKU19RKqHWF4HQbQvUA) **Sensors** * [SHT35 → Temperature and Humidity Sensor](https://hackmd.io/Ja62NRTbSPuIUa8gYK7Ynw?view) * [BMI088 → 6 Axis Accelerometer & Gyroscope](https://hackmd.io/0Q2zFo3KTCGiAzam957MNQ?view) * [HC-SR04 → Ultrasonic distance sensor](https://hackmd.io/DoyU31fGRtK4JNGNfSfwhg?view) * [Force Sensitive Resistor](https://hackmd.io/kIro5uUoRwGGhnBDCOAKvQ?view) * [Light Dependant Resistor](https://hackmd.io/wdWXUtBDTBOUWwV7RxbRQw) * [PIR Motion Sensor]() **Actuators** * [Chainable RGB led - grove](https://hackmd.io/VMDZocmUQaeovO75d-m7eQ?both) * [Servo Motor](https://hackmd.io/tQaePoTyRkKjhgrYkIUSBw) * [Relay](https://hackmd.io/HEf2HpL5RnGSONfZvxGtIA) ::: :::info MQTT Server **192.168.10.235** Node-Red Server **192.168.10.235:1880** Node-Red Dashboard **[http://192.168.10.235:1880](http://192.168.10.235:1880/ui/)** Telegram BOT: t.me/maeb_metabolic_bot ::: :::info **JOINING FLOW** [{"id":"81dfaa9b.15f928","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"a44b3862.a8c9a8","type":"mqtt in","z":"81dfaa9b.15f928","name":"","topic":"moisture","qos":"2","datatype":"auto","broker":"f900f16.6fa9c1","x":300,"y":200,"wires":[["d251af1c.d299a"]]},{"id":"4b32a483.55f59c","type":"function","z":"81dfaa9b.15f928","name":"weatherId","func":"var input = msg;\nmsg.payload = input.payload.id\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":340,"wires":[["f34f0cb4.5fb"]]},{"id":"f34f0cb4.5fb","type":"function","z":"81dfaa9b.15f928","name":"rain","func":"var input = msg;\nvar rain = false;\nif (input > 199, input < 299, input > 499, input < 599) {\n rain = true;\n } else {\n rain = false;\n}\nmsg.topic = \"rain\"\nmsg.payload = rain;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":730,"y":340,"wires":[["736567b4.7de908"]]},{"id":"3e4a83ee.440acc","type":"openweathermap","z":"81dfaa9b.15f928","name":"","wtype":"current","lon":"","lat":"","city":"Barcelona","country":"Spain","language":"en","x":300,"y":340,"wires":[["4b32a483.55f59c"]]},{"id":"956254de.a8c058","type":"inject","z":"81dfaa9b.15f928","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"5","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":340,"wires":[["3e4a83ee.440acc"]]},{"id":"b83f5c67.d15c9","type":"inject","z":"81dfaa9b.15f928","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":400,"wires":[["3e4a83ee.440acc"]]},{"id":"715ae02.ffcb82","type":"function","z":"81dfaa9b.15f928","name":"Wait for all tasks to finish","func":"context.data = context.data || new Object();\n\nswitch (msg.topic) {\n case \"task1\":\n context.data.task1 = msg.payload;\n msg = null;\n break;\n case \"task2\":\n context.data.task2 = msg.payload;\n msg = null;\n break;\n case \"task3\":\n context.data.task3 = msg.payload;\n msg = null;\n break;\n \n default:\n msg = null;\n \tbreak;\n\n}\n\nif(context.data.task1 != null && context.data.task2 != null && context.data.task3 != null) {\n\tmsg2 = new Object();\n msg2 = context.data;\n context.data=null;\n\treturn msg2;\n} else return msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":730,"y":820,"wires":[["1db3a013.cd5468"]]},{"id":"33b2850d.f24e6a","type":"delay","z":"81dfaa9b.15f928","name":"Random delay","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":492,"y":749,"wires":[["715ae02.ffcb82"]]},{"id":"1db3a013.cd5468","type":"debug","z":"81dfaa9b.15f928","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":820,"wires":[]},{"id":"35eb6e77.0f77da","type":"delay","z":"81dfaa9b.15f928","name":"Random delay","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":496,"y":845,"wires":[["715ae02.ffcb82"]]},{"id":"c8ab7682.98ada","type":"delay","z":"81dfaa9b.15f928","name":"Random delay","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":493,"y":929,"wires":[["715ae02.ffcb82"]]},{"id":"1ccffde6.02aa52","type":"function","z":"81dfaa9b.15f928","name":"Task1","func":"msg.topic=\"task1\";\nmsg.payload=\"Task1's payload\"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":324,"y":749,"wires":[["33b2850d.f24e6a"]]},{"id":"fe4cbb39.4f93c8","type":"function","z":"81dfaa9b.15f928","name":"Task2","func":"msg.topic=\"task2\";\nmsg.payload=\"Task2's payload\"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":327,"y":844,"wires":[["35eb6e77.0f77da"]]},{"id":"c3766a5d.afab88","type":"function","z":"81dfaa9b.15f928","name":"Task3","func":"msg.topic=\"task3\";\nmsg.payload=\"Task3's payload\"\nreturn msg;","outputs":1,"x":322,"y":928,"wires":[["c8ab7682.98ada"]]},{"id":"2dc185ba.57852a","type":"inject","z":"81dfaa9b.15f928","name":"Start","repeat":"","crontab":"","once":false,"topic":"","payload":"","payloadType":"none","x":158,"y":833,"wires":[["1ccffde6.02aa52","fe4cbb39.4f93c8","c3766a5d.afab88"]]},{"id":"736567b4.7de908","type":"function","z":"81dfaa9b.15f928","name":"Wait for all tasks to finish","func":"context.data = context.data || new Object();\n\nswitch (msg.topic) {\n case \"moisture\":\n context.data.moisture = msg.payload;\n msg = null;\n break;\n case \"rain\":\n context.data.rain = msg.payload;\n msg = null;\n break;\n default:\n msg = null;\n \tbreak;\n\n}\n\nif(context.data.moisture != null && context.data.rain != null) {\n\tmsg2 = new Object();\n msg2 = context.data;\n context.data=null;\n\treturn msg2;\n} else return msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":990,"y":200,"wires":[["dbaf7bf5.4a5eb8"]]},{"id":"b112a9.06981d58","type":"function","z":"81dfaa9b.15f928","name":"moisture","func":"msg.topic = \"moisture\";\nmsg.payload = msg.payload;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":740,"y":200,"wires":[["736567b4.7de908"]]},{"id":"d251af1c.d299a","type":"function","z":"81dfaa9b.15f928","name":"map%","func":"moisture = msg.payload;\n\nfunction map_range(c, low1, high1, low2, high2) {\n return low2 + (high2 - low2) * (c - low1) / (high1 - low1);\n}\n\nmsg.payload = map_range(moisture, 220, 600, 0, 100)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":510,"y":200,"wires":[["b112a9.06981d58"]]},{"id":"dbaf7bf5.4a5eb8","type":"debug","z":"81dfaa9b.15f928","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1210,"y":200,"wires":[]},{"id":"f900f16.6fa9c1","type":"mqtt-broker","name":"","broker":"192.168.10.235","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}] f74fa154572fe3f98711f03daa9d8d8d ```json= [{"id":"715ae02.ffcb82","type":"function","z":"24f520ec.0db91","name":"Wait for all tasks to finish","func":"context.data = context.data || new Object();\n\nswitch (msg.topic) {\n case \"task1\":\n context.data.task1 = msg.payload;\n msg = null;\n break;\n case \"task2\":\n context.data.task2 = msg.payload;\n msg = null;\n break;\n case \"task3\":\n context.data.task3 = msg.payload;\n msg = null;\n break;\n \n default:\n msg = null;\n \tbreak;\n\n}\n\nif(context.data.task1 != null && context.data.task2 != null && context.data.task3 != null) {\n\tmsg2 = new Object();\n msg2 = context.data;\n context.data=null;\n\treturn msg2;\n} else return msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":950,"y":340,"wires":[["1db3a013.cd5468"]]},{"id":"33b2850d.f24e6a","type":"delay","z":"24f520ec.0db91","name":"Random delay","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":692,"y":249,"wires":[["715ae02.ffcb82"]]},{"id":"1db3a013.cd5468","type":"debug","z":"24f520ec.0db91","name":"","active":true,"console":"false","complete":"true","x":1157,"y":339,"wires":[]},{"id":"35eb6e77.0f77da","type":"delay","z":"24f520ec.0db91","name":"Random delay","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":696,"y":345,"wires":[["715ae02.ffcb82"]]},{"id":"c8ab7682.98ada","type":"delay","z":"24f520ec.0db91","name":"Random delay","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":693,"y":429,"wires":[["715ae02.ffcb82"]]},{"id":"1ccffde6.02aa52","type":"function","z":"24f520ec.0db91","name":"Task1","func":"msg.topic=\"task1\";\nmsg.payload=\"Task1's payload\"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":524,"y":249,"wires":[["33b2850d.f24e6a"]]},{"id":"fe4cbb39.4f93c8","type":"function","z":"24f520ec.0db91","name":"Task2","func":"msg.topic=\"task2\";\nmsg.payload=\"Task2's payload\"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":527,"y":344,"wires":[["35eb6e77.0f77da"]]},{"id":"c3766a5d.afab88","type":"function","z":"24f520ec.0db91","name":"Task3","func":"msg.topic=\"task3\";\nmsg.payload=\"Task3's payload\"\nreturn msg;","outputs":1,"x":522,"y":428,"wires":[["c8ab7682.98ada"]]},{"id":"2dc185ba.57852a","type":"inject","z":"24f520ec.0db91","name":"Start","repeat":"","crontab":"","once":false,"topic":"","payload":"","payloadType":"none","x":358,"y":333,"wires":[["1ccffde6.02aa52","fe4cbb39.4f93c8","c3766a5d.afab88"]]}] ``` :::![](https://i.imgur.com/ySyuPEV.jpg) ![](https://i.imgur.com/CG9JWmi.jpg) ![](https://i.imgur.com/xx4pNsL.jpg) --- ![](https://i.imgur.com/TGx9uiY.png)
{"metaMigratedAt":"2023-06-15T16:10:34.598Z","metaMigratedFrom":"Content","title":"MAEB 20-21: Metabolic Systems: Information","breaks":true,"contributors":"[{\"id\":\"2f3ecda0-da2d-4651-b547-4566b6721ed8\",\"add\":6583,\"del\":0},{\"id\":\"f2c0b010-35d9-44bb-b6ef-d48fdfadf145\",\"add\":25792,\"del\":22},{\"id\":\"dbffd32c-1023-42a6-b918-563a1648653c\",\"add\":75,\"del\":0},{\"id\":\"7b4f836b-587a-48fc-8e18-138786778844\",\"add\":37,\"del\":0},{\"id\":\"3a39305a-00cb-44f0-a457-027e9c049980\",\"add\":92,\"del\":0},{\"id\":\"6e651243-c6b1-4aec-b37f-7ee5be83bfbe\",\"add\":810,\"del\":239}]"}
    369 views
   owned this note