IEEE Projects in HYDERABAD, Final Year Projects in TELANAGA, we are offering ieee projects, ieee projects, ns2, java, dotnet, android, embedded, matlab, power elctronics, power system, final year projects for M.E/M.Tech, B.E/B.Tech,MCA, BCA, M.Sc, B.Sc
svskits-1
Monday, 13 March 2023
How to make an object following robot | Human Following Robot
Today I walk through how to hook up an industrial pressure transducer sensor and interface it with an Arduino micro-controller. I take the incoming analog voltage value, convert it and display it to the serial monitor as well as onto an LCD screen. Code below. If you have any questions please comment below or e-mail me below. Stay tuned for more videos! Tyler, ************************************************************************************* SUBSCRIBE: https://www.youtube.com/c/TylerOvens?... ************************************************************************************* SHARE THIS VIDEO LINK: • Pressure Sensor -... ************************************************************************************* BUY THE ITEMS IN THIS VIDEO (AMAZON.COM): Video Equipment: GoPro7: https://amzn.to/33FWCAW GoPro Accessory Kit: https://amzn.to/2Uehig4 GoPro Stabilizer Gimbal: https://amzn.to/2UvX5Bz Arduino: Uno Starter Kit: https://amzn.to/2RfuEqq Pressure Transducer: https://amzn.to/2JJrZRP LCD screen: https://amzn.to/2Vatb60 Multimeter: https://amzn.to/2wfh6nE ************************************************************************************* BUY THE ITEMS IN THIS VIDEO (AMAZON.CA): Video Equipment: GoPro7: https://amzn.to/2UdHtnk GoPro Accessory Kit: https://amzn.to/3bl9wXy GoPro Stabilizer Gimbal: https://amzn.to/3dlBt3r Arduino: Uno Starter Kit: https://amzn.to/2Re5MPY Pressure Transducer: https://amzn.to/3aIJpdf LCD screen: https://amzn.to/2Xeqymg Multimeter: https://amzn.to/2JJrF5z ************************************************************************************** CONTACT ME: E-Mail: tylerovens@me.com ************************************************************************************** Code Start */ /* This example demonstrates how to take a standard 3-wire pressure transducer * and read the analog signal, then convert the signal to a readable output and * display it onto an LCD screen. * * Contact Tyler at tylerovens@me.com if you have any questions */ #include "Wire.h" //allows communication over i2c devices #include "LiquidCrystal_I2C.h" //allows interfacing with LCD screens const int pressureInput = A0; //select the analog input pin for the pressure transducer const int pressureZero = 102.4; //analog reading of pressure transducer at 0psi const int pressureMax = 921.6; //analog reading of pressure transducer at 100psi const int pressuretransducermaxPSI = 100; //psi value of transducer being used const int baudRate = 9600; //constant integer to set the baud rate for serial monitor const int sensorreadDelay = 250; //constant integer to set the sensor read delay in milliseconds float pressureValue = 0; //variable to store the value coming from the pressure transducer LiquidCrystal_I2C lcd(0x3f, 20, 4); //sets the LCD I2C communication address; format(address, columns, rows) void setup() //setup routine, runs once when system turned on or reset { Serial.begin(baudRate); //initializes serial communication at set baud rate bits per second lcd.begin(); //initializes the LCD screen } void loop() //loop routine runs over and over again forever { pressureValue = analogRead(pressureInput); //reads value from input pin and assigns to variable pressureValue = ((pressureValue-pressureZero)*pressuretransducermaxPSI)/(pressureMax-pressureZero); //conversion equation to convert analog reading to psi Serial.print(pressureValue, 1); //prints value from previous line to serial Serial.println("psi"); //prints label to serial lcd.setCursor(0,0); //sets cursor to column 0, row 0 lcd.print("Pressure:"); //prints label lcd.print(pressureValue, 1); //prints pressure value to lcd screen, 1 digit on float lcd.print("psi"); //prints label after value lcd.print(" "); //to clear the display after large values or negatives delay(sensorreadDelay); //delay in milliseconds between read values } */ Code End
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment