so a weird thing is happening right now, when i plug my battery into the arduino dc port, the arduino lights come on but the adafruit power led is still off, but when i plug the battery into the adafruit port instead, the adafruit board turns on but the arduino led is off. What i did is that i soldered some pins on the adafruit and just slid all of them into the pins of the arduino, then added some black header pins on the top of the adafruit, so im sure these are working because when i plug the battery into the arduino, the sensors work.
so is there something im supposed to do to initiate the communication or something between the arduino and the adafruit? because the physical connection looks right. heres the code i used to test the left motor of my car:
#include <Wire.h>
#include "utility/Adafruit_PWMServoDriver.h"
#include <MD_TCS230.h>
#include <FreqCount.h>
Adafruit_MotorShield AFMS = Adafruit_MotorShield();
//Adafruit_MotorShield(uint8_t addr = 0x60);
Adafruit_DCMotor *RMF = AFMS.getMotor(1);
Adafruit_DCMotor *LMF = AFMS.getMotor(2);
Adafruit_DCMotor *RMB = AFMS.getMotor(3);
Adafruit_DCMotor *LMB = AFMS.getMotor(4);
void setup() {
Serial.begin(9600);
AFMS.begin();
void begin(uint16_t freq = 1600);
void setSpeed(uint8_t speed);
void run(uint8_t direction);
RMF->run(FORWARD);
RMB->setSpeed(100);
RMF->setSpeed(100);
LMB->setSpeed(100);
LMF->setSpeed(100);
}
void loop() {
LMF->run(FORWARD);
}
no connection between arduino and adafruit motor shield v2.3
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- shazzalm
- Posts: 2
- Joined: Fri Apr 21, 2017 9:13 am
no connection between arduino and adafruit motor shield v2.3
Last edited by shazzalm on Fri Apr 21, 2017 9:30 am, edited 1 time in total.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: no connection between arduino and adafruit
Please post a photo showing your soldering and wiring between the Arduino and the board.
- shazzalm
- Posts: 2
- Joined: Fri Apr 21, 2017 9:13 am
Re: no connection between arduino and adafruit motor shield
here it is
- Attachments
-
- 20170421_175450_resized.jpg (322.78 KiB) Viewed 288 times
-
- 20170421_175433_resized.jpg (300.98 KiB) Viewed 288 times
-
- 20170421_175425_resized.jpg (344.55 KiB) Viewed 288 times
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: no connection between arduino and adafruit motor shield
You do not have the "VIN" power jumper installed, so there is no connection between the Arduino power and the motor power. If you want to have a single power source for both, you need to install the jumper as described in the guide:
https://learn.adafruit.com/adafruit-mot ... and-motors
https://learn.adafruit.com/adafruit-mot ... and-motors
Please be positive and constructive with your questions and comments.