Test
Introduction:
This article helps in creating simple Arduino project that is perfect for the beginners.
This basic project will help in understanding how to set up the Arduino software.
No prior coding experience is needed to undergo this project. Students will learn
about the working principles of LED and how to programmatically control LED lights
using Micro controller + Bluetooth via Arduino & Android App along with academic
relevance. A clear understanding of how the LED light glows when the command
is sent from the Arduino Android App and how exactly wired and wireless
communication happens between microcontroller and Bluetooth.
dadfadfa
dfasdfasdfas
#pip install pyFirmata\r \r import pyfirmata\r import time \r import numpy as np\r \r port = \"COM33\" \r board = pyfirmata.Arduino(port) \r \r pin_1 = 8\r pin_2 = 9\r pin_3 = 10\r \r board.digital[pin_1].mode = pyfirmata.OUTPUT\r board.digital[pin_2].mode = pyfirmata.OUTPUT \r board.digital[pin_3].mode = pyfirmata.PWM\r \r while True:\r # On Off LED\r board.digital[pin_1].write(1) \r time.sleep(1) \r board.digital[pin_1].write(0) \r time.sleep(1) \r \r board.digital[pin_2].write(1) \r time.sleep(1) \r board.digital[pin_2].write(0) \r time.sleep(1)\r \r # Increase brightness\r for i in np.arange(0, 1, 0.1):\r board.digital[pin_3].write(i)\r time.sleep(0.1)\r
asdasd