My order included:
AM2315 - Encased I2C Temperature/Humidity Sensor[ID:1293]
Continuous Rotation Servo (FeeTech FS5103R) [ID:154]
Continuous Rotation Micro Servo (FS90R) [ID:2442]
I am having issues with (2 of 3) items on my order.
Issue 1: The Micro Servo (FS90R) will not turn, only hums.
Tried adjusting the zero pot but doesn't help.
Using the same code, changing to the FS5103R stepper, this stepper works fine.
I see no reason the same wiring and code would not work for either stepper.
The FS90R appears to be defective.
Code: Select all
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees
{
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
The AM2315 does not appear to work.
Installed the AM2315 library and example from the Adafruit_AM2315/ repository.
When running the code on a arduino duemilanove all that I see on the Serial monitor is "AM2315 Test!"
I do NOT get the "Sensor not found, check wiring & pullups!" message unless I unplug one of the I2C leads, however I do not get any data from the sensor.
Code: Select all
#include <Wire.h>
#include <Adafruit_AM2315.h>
/***************************************************
This is an example for the AM2315 Humidity + Temp sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> https://www.adafruit.com/products/1293
These displays use I2C to communicate, 2 pins are required to
interface
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
****************************************************/
// Connect RED of the AM2315 sensor to 5.0V
// Connect BLACK to Ground
// Connect WHITE to i2c clock - on '168/'328 Arduino Uno/Duemilanove/etc thats Analog 5
// Connect YELLOW to i2c data - on '168/'328 Arduino Uno/Duemilanove/etc thats Analog 4
Adafruit_AM2315 am2315;
void setup() {
Serial.begin(9600);
Serial.println("AM2315 Test!");
if (! am2315.begin()) {
Serial.println("Sensor not found, check wiring & pullups!");
while (1);
}
}
void loop() {
Serial.print("Hum: "); Serial.println(am2315.readHumidity());
Serial.print("Temp: "); Serial.println(am2315.readTemperature());
delay(1000);
}
I am not new to Arduino, or Electronics... however I would be happy to perform any test suggested.
How can I get my (2) items replaced and preferably tested prior to shipping.