Set the Pin Attached to the LED
Total Page:16
File Type:pdf, Size:1020Kb
Set the pin attached to the LED Zerynth - Confidential | © 2018 www.zerynth.com 50 Blink two LEDs Zerynth - Confidential | © 2018 www.zerynth.com 51 Example ‘Multi-Blink’ Zerynth - Confidential | © 2018 www.zerynth.com Search and clone the ‘Multi Blink’ Example Zerynth - Confidential | © 2018 www.zerynth.com 53 Let’s take a look at the code Zerynth - Confidential | © 2018 www.zerynth.com 54 Check the board pinout Zerynth - Confidential | © 2018 www.zerynth.com 55 Set the pin attached to the LEDs Zerynth - Confidential | © 2018 www.zerynth.com 56 Python vs C/C++ Zerynth - Confidential | © 2018 www.zerynth.com 57 Reading a Digital Sensor Zerynth - Confidential | © 2018 www.zerynth.com Reading a digital sensor Weather click https://www.mikroe.com/weather-click Weather click carries BME280 integrated environmental unit from Bosch. It’s a sensor that detects humidity, pressure, and temperature, specifically designed for low current consumption and long-term stability. The click is designed to work on a 3.3V power supply. It communicates with the target microcontroller over SPI or I2C interface. Zerynth - Confidential | © 2018 www.zerynth.com 59 Search for BME280 Zerynth - Confidential | © 2018 www.zerynth.com 60 Open the doc of BME280 Zerynth - Confidential | © 2018 www.zerynth.com Open the doc of BME280 Zerynth - Confidential | © 2018 www.zerynth.com Copy/Paste and edit the code Zerynth - Confidential | © 2018 www.zerynth.com Getting Started with Xinabox and Zerynth Zerynth - Confidential | © 2018 www.zerynth.com Getting Started https://www.zerynth.com/blog/getting-started-with-xinabox-and-zerynth-fast-tracked-iot-development/ Zerynth - Confidential | © 2018 www.zerynth.com 65 Blink https://www.zerynth.com/blog/getting-started-with-zerynth-on-xinabox-blinking-an-led-using-python/ Zerynth - Confidential | © 2018 www.zerynth.com 66 Weather https://docs.zerynth.com/latest/official/lib.xinabox.sw01/docs/index.html Zerynth - Confidential | © 2018 www.zerynth.com 67 Getting Started with LoRaWAN and Zerynth Zerynth - Confidential | © 2018 www.zerynth.com LoRaWAN architecture More info: https://www.zerynth.com/blog/getting-started-with-lorawan-and-python-using-zerynth-and-the-things- network/ Zerynth - Confidential | © 2018 www.zerynth.com 69 LoRa node Zerynth - Confidential | © 2018 www.zerynth.com 70 Search for ‘RN2483’ or ‘get eui’ Zerynth - Confidential | © 2018 www.zerynth.com Clone the example and edit the script Zerynth - Confidential | © 2018 www.zerynth.com Open the serial monitor to get the EUI Zerynth - Confidential | © 2018 www.zerynth.com Search for ‘ping’ Zerynth - Confidential | © 2018 www.zerynth.com Let’s take a look at the code Zerynth - Confidential | © 2018 www.zerynth.com Open the serial monitor and the TTN console Zerynth - Confidential | © 2018 www.zerynth.com Edit the script to send data from the sensor Zerynth - Confidential | © 2018 www.zerynth.com Getting Started with 4ZeroPlatform and Zerynth Zerynth - Confidential | © 2018 www.zerynth.com 4ZeroPlatform, the Industrial Toolkit for IoT Solution Providers http://www.thingsoninternet.it/ http://www.thingsoninternet.it/4zeroplatform Zerynth - Confidential | © 2018 www.zerynth.com 79 Getting Started https://docs.4zeroplatform.com/guide/getting-started/ Hello 4ZeroBox https://docs.4zeroplatform.com/guide/4zerobox/ Hello 4ZeroManager https://docs.4zeroplatform.com/guide/4zeromanager/ Zerynth - Confidential | © 2018 www.zerynth.com 80 IoT solutions powered by Zerynth For more info, contact us at www.zerynth.com/contact-us/ Zerynth - Confidential | © 2018 www.zerynth.com 81 Smart Retail Synchronized and remote-controllable rotating platforms for retail display A set of synchronized and interactive retail window displays, installed in top level jewelry stores in Paris, with the following main features: - working 24/7; - remotely controllable with a dedicated mobile app; - interactive: customers can rotate the displayed object and control the illumination - able to gather data from customer interaction, presence, etc - Retailers can monitor the customers behaviour through a simple real-time dashboard More info: https://www.zerynth.com/blog/portfolio/smart-iot-retail-displays/ Zerynth - Confidential | © 2018 www.zerynth.com 82 Wi-Ref: Industrial Refrigeration IoT solution for monitoring and control industrial refrigeration systems Monitor old and modern industrial refrigeration systems for efficiency and regulatory purposes ● Temp, humidity, doors and power consumption data acquisition and recording ● Wi-fi connectivity ● Not-invasive interventions and apparatus replacements. OUTCOMES ● Efficiency: reduction of Maintenance costs and energy ● Quality: cold chain monitoring meeting HACCP regulation Walk-in Refrigerators Refrigeration Engines Zerynth - Confidential | © 2018 www.zerynth.com 83 Waste Management System IoT system for monitoring of the biogas from a waste management plant Biogas production monitoring for efficiency improvement (Tuscany) • Data acquisition, analysis and visualization • CH4, O2, pressure, temperature and humidity • LoRa connection Benefits: • Efficiency: less time and more precision for wells regulation; • Visibility: awareness of unknown biogas cyclic dynamics More info: www.iotitaly.net/wp-content/uploads/2018/02/iot_genova_mazzei_biogas.pdf Zerynth - Confidential | © 2018 www.zerynth.com 84 Nautical Sector 4ZeroBox, powered by Zerynth, applied to boats performance monitoring 4ZeroBox used as data acquisition unit of boats participating at the Italian Platu25 Championship in Livorno. Zerynth allowed to develop an IoT System able to analyse navigation data and elaborate operational information for boats manufacturers and end users. in collaboration with Zerynth - Confidential | © 2018 www.zerynth.com 85 Lincoln Project European Project for the Marine Space The Lincoln project is an EU Horizon 2020 research project focused on creating three types of new marine vessels. Zerynth allowed to develop a cloud connected Marine Gateway based on 32-bit microcontroller and embedded sensors able to acquire navigation data (position, acceleration, velocity, etc.) and elaborate operational information for boats manufacturers and end users. More info: www.lincolnproject.eu Zerynth - Confidential | © 2018 www.zerynth.com 86 Automotive Python programmable OBD Boxes A worldwide automotive company required Zerynth to support OBD-connected IoT black boxes; The main added values are the easy connectivity (via GSM) to major cloud vendors and the possibility for non-skilled personnel to create their own IoT solutions. The project will be made live in Q4 2018. Zerynth - Confidential | © 2018 www.zerynth.com 87 Blockchain & Cryptocurrency Zerynth enables Blockchain applications for embedded devices! Zerynth enables Blockchain applications for embedded devices! This demo shows two devices playing an Ethereum Smart Contract based game where each device sends a random number and the Contract determines the winner (the player with the highest number). Zerynth powered devices are capable of calling Smart Contract’s functions through signed transactions and getting Smart Contract’s states through eth calls so being aware of the progress of the game. All of this in an easy to read and maintainable Python script. Zerynth - Confidential | © 2018 www.zerynth.com 88 Domotics & Smart Lighting IoT Smart Lamp A wi-fi smart lamp built with low power wireless standards combined with low cost, ultra- miniature LEDs, sensors and communications devices. Remotely controllable with the Zerynth APP Zerynth - Confidential | © 2018 www.zerynth.com 89 Community Projects See more on Hackster: www.hackster.io/zerynth Zerynth - Confidential | © 2018 www.zerynth.com 90 Technical Details Learn more at docs.zerynth.com Zerynth - Confidential | © 2018 www.zerynth.com 91 Zerynth is “Agnostic” Zerynth is hardware agnostic Zerynth does not and will not require a specific board. The porting of boards, sensors, shields is a daily activity. Zerynth is OS agnostic Any RTOS with Mutexes and Threads can be easily ported. Zerynth is Cloud agnostic Data can be gathered by Zerynth powered devices through the Zerynth ADM and channeled to any Cloud infrastructure. Zerynth will be language agnostic Javascript, Go, Rust , Swift etc.. will be considered as other high level programming languages to be interfaced with Zerynth. Zerynth - Confidential | © 2018 www.zerynth.com 92 Unique Technical Differentiations Zerynth Virtual Machine: • The first virtual machine specifically tailored for embedded and IoT that supports hybrid C/Python programming • A tiny footprint: 60k-80k of flash, 3-5k ram. To keep VM code at minimum the Zerynth uplinker has been developed • RTOS for multithreading: in Zerynth each Python thread is a RTOS thread managed by a priority aware real-time scheduler Zerynth Uplinker (Patented) : The first hybrid C/Python-bytecode linker with integrated multi-board uploader Zerynth App: The first generic mobile app for embedded devices that renders HTML 5, CSS and JS templates Zerynth Advanced Device Manager: A cloud based device manager bridging device data to top Cloud infrastructure, relaying device commands and handling FOTA Zerynth - Confidential | © 2018 www.zerynth.com 93 Zerynth Virtual Machine - Features • Zerynth VM achieves cross architecture compatibility by encapsulating any RTOS into an OS abstraction layer (ZOSAL) providing multithreading primitives • Zerynth VM achieves cross mcu-family compatibility by encapsulating standard onboard peripherals (Serial ports, USB, I2C, SPI,..) into an