Mblock with Shield adafruit v23 moteurs 4 x 1,2 A Arduino


#1

Hi,

I would to know how use mblock with the Shield adafruit v23 moteurs 4 x 1,2 A for Arduino

I download and installed the library "Adafruit_MotorShield_V2_mBlock 1.0 /by Beforefly / uploaded at 2016-11-14 00:00:00 " from this website : http://www.mblock.cc/extensions/

but i don’t success to launch any motor on mblock with the extension

I have saw that’s Befrefly has written on informations "Before using this extension, you should install the library Adafruit_MotorShield_V2 in your mBlock first. "

But i don’t undsertand how to “install the library Adafruit_MotorShield_V2 in your mBlock first”
from this website

How install this “first” library ?

Where could i find programs exemples for this shield ?

Thanks for help

Eric


#2

Hi Eric,
Not sure what do you mean.
mBlock can allow to add extension. If there is extension already, just download it.


#3

Thanks for answer. With your answer, I understood that my problem is maybe only from mblock. I don’t success to use my adafruit card with mblock. I succeed to install the adafruit library but my programs don’t work on my hardware (arduino uno+adafruit motors shield) . I don’t understand how programming… nb : i succeeded many times to programming an arduino uno or an auriga card with mblock but, with this adafruit card, it’s another problem …

Is someone get a exemple of program on Mblock with an Shield adafruit v23 moteurs 4 x 1,2 A ?

Thanks


#4

You can post a video or some pictures to show more details of the “non success”. Maybe some others have encountered similar issue before.


#5

Hello
Adafruit MotorShield V2 extension doesn’t work
I have this error message

start processing code…

processing code by middleware of pinMode

avr-toolchain\bin\avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\Public\Programs\mblock\resources\app\mlink-v1\external\arduino\avr-library\variants\standard" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src" -I"arduino-libraries/makeblock/src/utility/avr" -I"avr-library/libraries/Wire/src/utility" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/utility/" -I"arduino-libraries/arduino/Esplora/src/" -I"arduino-libraries/arduino/Firmata/" -I"arduino-libraries/arduino/Firmata/utility/" -I"arduino-libraries/arduino/Keyboard/src/" -I"arduino-libraries/arduino/Mouse/src/" -I"arduino-libraries/arduino/Robot_Control/src/" -I"arduino-libraries/arduino/Robot_Motor/src/" -I"arduino-libraries/arduino/RobotIRremote/src/" -I"arduino-libraries/arduino/Stepper/src/" “C:\Users\Techno\mblock-avr\temp\build\code.cpp” -o “C:\Users\Techno\mblock-avr\temp\build\code.o”

Command failed: avr-toolchain\bin\avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\Public\Programs\mblock\resources\app\mlink-v1\external\arduino\avr-library\variants\standard" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src" -I"arduino-libraries/makeblock/src/utility/avr" -I"avr-library/libraries/Wire/src/utility" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/utility/" -I"arduino-libraries/arduino/Esplora/src/" -I"arduino-libraries/arduino/Firmata/" -I"arduino-libraries/arduino/Firmata/utility/" -I"arduino-libraries/arduino/Keyboard/src/" -I"arduino-libraries/arduino/Mouse/src/" -I"arduino-libraries/arduino/Robot_Control/src/" -I"arduino-libraries/arduino/Robot_Motor/src/" -I"arduino-libraries/arduino/RobotIRremote/src/" -I"arduino-libraries/arduino/Stepper/src/" “C:\Users\Techno\mblock-avr\temp\build\code.cpp” -o “C:\Users\Techno\mblock-avr\temp\build\code.o” C:\Users\Techno\mblock-avr\temp\build\code.cpp:1:10: fatal error: Adafruit_MotorShield.h: No such file or directory #include <Adafruit_MotorShield.h> ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.

Failed to compile file code.cpp

arduino build failed.

Thank you for help