![]() ![]() You can also make another motor on port M2Īdafruit_DCMotor *driveMotor = AFMS. In this case, M1Īdafruit_DCMotor *steeringMotor = AFMS.getMotor(1) #include "utility/Adafruit_MS_PWMServoDriver.h"Īdafruit_MotorShield AFMS = Adafruit_MotorShield() #if not defined ( VARIANT_ARDUINO_DUE_X) & not defined ( VARIANT_ARDUINO_ZERO) I am a novice coder at best and have used the Controller example from the BlueFruitLE nRF51 Library ( Controller | Bluefruit LE Connect for iOS and Android | Adafruit Learning System) to base my controller code off. The response time suddenly becomes extremely slow, taking up to a minute at times to recognize that I have let go of one of the buttons. The Controller sketch allows you to turn your BLE-enabled iOS or Android device in a hand-held controller or an external data source, taking advantage of the wealth of sensors on your phone or tablet. I have been able to write programs for each unit independently but the problem comes when I try to control the motors using my iphone and the adafruit app through the LE SPI Friend. I am trying to control these two motors with the Bluefruit LE SPI Friend. I have a v2.3 Motor Shield connecting two 9v DC motors through M1 and M4. and so we aren't at the mercy of any third party vendors who may or may not be interested in keeping their code up to date or catering to our customer's needs.I have done research and not been able to find much on the specifics of my problem. We control every line of code that runs on our modules. One of the biggest advantages of the Adafruit Bluefruit LE family is that we wrote all of the firmware running on the devices ourselves from scratch. There are plenty of BLE modules out there, with varying quality on the HW design as well as the firmware.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |