Raspberry Pi

FreedomPay

Member
Joined
Aug 23, 2009
Messages
161
Reaction score
0
Hi Bro/Sis,

I have some queries on Raspberry Pi. Currently i am working on my major project with is water pump sensor using the Raspberry Pi 2.

Currently i have the following items:
Raspberry PI 2
Soil Moisture Sensor (YL-69 an YL-38)
Now my question is do I need a breadboard? or i can connect it to the raspberry pi instead?

Your help is appreciate.
Thank you

Regards
FreedomPay
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Hi Bro/Sis,

I have some queries on Raspberry Pi. Currently i am working on my major project with is water pump sensor using the Raspberry Pi 2.

Currently i have the following items:
Raspberry PI 2
Soil Moisture Sensor (YL-69 an YL-38)
Now my question is do I need a breadboard? or i can connect it to the raspberry pi instead?

Your help is appreciate.
Thank you

Regards
FreedomPay

Not expert here. But breadboard or not, you need to look at your input voltage requirement and weather you need a voltage regulator and how much power is your sensor consuming. You don't want to overly consume the power from the raspberryPI and making it unstable.

Maybe you want to read http://www.tiagoespinha.net/2014/05/project-how-to-easily-monitor-your-plants-soil-humidity/
 

FreedomPay

Member
Joined
Aug 23, 2009
Messages
161
Reaction score
0
Arduino ESP 8266

Hi Bro and Sis,

Currently i have complete the raspberry part and i and now struck at the Arduino part.

Below is script

#include <SoftwareSerial.h>

#define DEBUG true
#define sendData


SoftwareSerial esp8266(2, 1); // make RX Arduino line is pin 2, make TX Arduino line is pin 1.
// This means that you need to connect the TX line from the esp to the Arduino's pin 1
// and the RX line from the esp to the Arduino's pin 2

void setup() {
// put your setup code here, to run once:

Serial.begin(115200);
esp8266.begin(115200); // your esp's baud rate might be different
sendData("AT+RST\r\n", 2000, DEBUG); // reset module
sendData("AT+CWMODE=1\r\n", 1000, DEBUG); // configure as client
sendData("AT+CWLAP\r\n", 1000, DEBUG); // List down all the avaliable SSID
//sendData("AT+CWLAP\r\n", 1000, DEBUG);
// sendData("AT+CWJAP=SSID,Password");


}

My error code are :

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4c
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xfe
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xa4
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xfd
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x41
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x41
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xa4
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xfd


My objective was to connect to the Access Point. Kindly assist

Thank you

Regards
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Hi Bro and Sis,

Currently i have complete the raspberry part and i and now struck at the Arduino part.

Below is script

#include <SoftwareSerial.h>

#define DEBUG true
#define sendData


SoftwareSerial esp8266(2, 1); // make RX Arduino line is pin 2, make TX Arduino line is pin 1.
// This means that you need to connect the TX line from the esp to the Arduino's pin 1
// and the RX line from the esp to the Arduino's pin 2

void setup() {
// put your setup code here, to run once:

Serial.begin(115200);
esp8266.begin(115200)
; // your esp's baud rate might be different
sendData("AT+RST\r\n", 2000, DEBUG); // reset module
sendData("AT+CWMODE=1\r\n", 1000, DEBUG); // configure as client
sendData("AT+CWLAP\r\n", 1000, DEBUG); // List down all the avaliable SSID
//sendData("AT+CWLAP\r\n", 1000, DEBUG);
// sendData("AT+CWJAP=SSID,Password");


}

My error code are :

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4c
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xfe
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xa4
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xfd
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x41
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x41
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xff
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xa4
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xfd


My objective was to connect to the Access Point. Kindly assist

Thank you

Regards

My comments to the above

First of all, the comments seems incorrect. How could it be that you are wiring 2 devices TX and RX lines using TX <-> TX and RX <-> RX. It should always be DEVICE1_TX <-> DEVICE2_RX, DEVICE1_RX <-> DEVICE2_TX.

Also you can try communicating at a lower baud rate and see if the devices synchronised.
 

limjq44

Member
Joined
Aug 19, 2014
Messages
341
Reaction score
1
If you have a working sensor which gives out analog voltages, I would recommend you to simply purchase an ADC (recommend you to get MCP3008) and plug it into the raspberry pi ;) from there, you can then read analog voltages already(if you are dealing with analog)
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top