Serial.print(1, DEC) // print a '1', this character will be Val = analogRead(0) // read analog input pin 0 Serial.begin(9600) // sets the serial port to 9600 * The value read is printed through the serial to be monitored * to the amount of light that hits the sensor surface. The value read from the sensor is proportional * Reads values from a photoresistor connected to the Use the Serial Monitor button to watch the data coming from the Wiring board, then close the Serial Monitor again. The new program will start automatically after uploading. In case of syntax errors the Wiring environment will print the error messages otherwise it will print the Upload was completed successfully, the uploading process triggers activity in the Rx/Tx LEDs on the Wiring hardware. Step 1įirst let's prepare a small circuit for connecting the photoresistor to the Wiring board:Ĭopy and paste the following code on the Wiring editor: Verify your program is free of compiling errors by pressing the Compile/Verify button in the menu bar. For more Information on Wiring install check out the tutorials about Wiring installation and software setup. It assumes the Wiring software and Isadora are installed and the proper Wiring setup has been previously completed. The brief for the tutorial will be to read values from a photoresistor (light sensor) connected to Wiring analog input pin 0 and send them to Isadora. This tutorial introduces the basic interfacing between the Wiring hardware and Isadora. Interfacing the Wiring hardware and Isadora
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |