Moisture sensor SN-M114

Digital Fiber, Photoelectric, Laser Range, Optical, Temperature, Rotary Encoder, Ultrasonic, Gas, Gyro, Accelerometer, FlexiBend, Flexiforce, Compass......

Re: Moisture sensor SN-M114

Postby ABSF » Thu Sep 13, 2012 3:05 pm

qinhong WROTE:anyone that can teach me how to write the programming that connect this sensor and pic16f877a together??? urgent!!!
thanks


you can post what you have done so far of your assignment here. And we may give some advice or a push in the correct direction. But of course not just hand out a turn key ready solution on a silver plate.

CODE: SELECT_ALL_CODE
 
/*
  # Example code for the moisture sensor
  # Editor     : Lauren
  # Date       : 13.01.2012
  # Version    : 1.0
  # Connect the sensor to the A0(Analog 0) pin on the Arduino board
 
  # the sensor value description
  # 0  ~300     dry soil
  # 300~700     humid soil
  # 700~950     in water
*/
void setup(){
   Serial.begin(57600);
}

void loop(){
   Serial.print("Moisture Sensor Value:");
  Serial.println(analogRead(0)); 
  delay(100);
 
}


Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Previous

Return to Sensor

Who is online

Users browsing this forum: No registered users and 13 guests

cron