Posts

Showing posts with the label arduino

YL-69 Soil Moisture Values are not consistent

YL-69 Soil Moisture Values are not consistent I am using YL-69 Soil Moisture. My Goal was to calibrate the these values from real time implementations. But when I immense this sensor into the soil, the Values are decreasing one by one. These values are fluctuation and not consisting. Then I use two Yl-69 Soil Moisture Sensor, Surprisingly I have noticed huge difference between values of these two same Yl-69 Soil Moisture. Is there any method we can consistent and constant the values of Yl-69 Sensor By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

'An error occurred while uploading the sketch' Arduino

'An error occurred while uploading the sketch' Arduino I am learning to receive data from the UART pins of the Arduino. I am using a SPEC Gas Sensor for the same. Here is the simplest code I could write. void setup() { Serial.begin(9600); } void loop() { if(Serial.available()>0) { Serial.print(Serial.available()); } } The code verifies but when I try to burn this code in the Arduino Uno, I get the following error after it says that the code uses 5% of the storage space. Sketch uses 1744 bytes (5%) of program storage space. Maximum is 32256 bytes. Global variables use 184 bytes (8%) of dynamic memory, leaving 1864 bytes for local variables. Maximum is 2048 bytes. avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x1e avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x66 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x7e avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x06 avrdude: stk500_getsync() attempt 5 of 10: n...

Raspberry pi and arduino serial connection over usb displays USB information

Raspberry pi and arduino serial connection over usb displays USB information I was trying to talk between the Arduino and raspberry pi using USB, with the pySerial library. I wanted to have multiple sensors sending in data and a couple of command sent from the pi's side. I've tried arrays to send data and use indexing on the python (receiving) side to access individual data channels, is there another way to do this task, I've tried learning about "data.split(':')", I don't seem to understand how it works. Could someone please show me a legal method to transfer data to-fro? Arduino Code: int data[100]; int val2 = A0; int val1 = A1; void setup(){ pinMode(val1, INPUT); pinMode(val2, INPUT); Serial.begin(9600); } void loop(){ // individual channels of data transmitted, delya = 60 for 6 channels, f = 1/50 while(1){ data[0] = analogRead(val2); data[1] = analogRead(val1); data[2] = analogRead(A2); data[4] = analogRead(A3); data[5]...