How to control Servo motor with Arduino using mBlock software..?


#1

Hello friends, I’m new to mBot. I want to control servo motor with Arduino using mBlock software. Please share some material how to code for this.


#2

I think you might need to use the other scratch robot modules since those have more granular control over the other arduino interfaces. I have not done this yet but I suspect it should be possible. the mBot group is setup specifically for all the plug-n-play parts.


#3

Thanks for getting back, I have attached the screenshot of error when i was trying to upload code into Arduino using mBlock. I don’t understand the error. Please explain me.


#4

Check if that’s what you need: http://www.instructables.com/id/How-to-use-mBlock-software-to-control-Arduino-UNO-/
We will release more software tutorial in near future, you can subscribe our social account: https://www.facebook.com/pages/mBlock/953734557988528?ref=hl to follow up!
Una


#5

@una: Thanks for your message. Please explain me the error, why i’m geeting this.


#6

I suspect you are missing the servo library
see this other forum post
http://forum.arduino.cc/index.php?topic=37903.0
looks like a missing header.


#7

Thanks @danjger: I have already included that servo library in header file. But still facing the problem :frowning: . Please see the screenshot.


#8

can you copy and paste the entire code block to see if others can compile it?


#9

@danjger Sure, Here I have attached the mBlock Arduino program code and also mBlock .sb2 file in zip folder. Help me to solve the problem. Thanks.

mBlock Servo motor testing in Arduino.zip (39.6 KB)

#include <Arduino.h>
#include <Wire.h>
#include <Servo.h>
#include <SoftwareSerial.h>


double angle_rad = PI/180.0;
double angle_deg = 180.0/PI;
double pos;
Servo servo_9;



void setup(){
    pos = 0;
    
}

void loop(){
    
    if((pos) < (180)){
        servo_9.attach(9);
        servo_9.write(pos);
        delay(1000*1);
        pos += 1;
    }else{
        pos = 180;
        if((pos) > (180)){
            pos += -1;
            servo_9.attach(9);
            servo_9.write(pos);
            delay(1000*1);
        }
    }
    
}

#10

Usinng arduino 1,6,5 this compiles fine for me.
I suspect you have some path problems. Copy and paste the entire error here as well.


#11

file:///C:/Program Files (x86)/ArduinoC:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/abi.cpp,-o,abi.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/CDC.cpp,-o,CDC.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial.cpp,-o,HardwareSerial.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial0.cpp,-o,HardwareSerial0.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial1.cpp,-o,HardwareSerial1.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial2.cpp,-o,HardwareSerial2.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial3.cpp,-o,HardwareSerial3.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/HID.cpp,-o,HID.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/IPAddress.cpp,-o,IPAddress.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp,-o,main.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/new.cpp,-o,new.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Print.cpp,-o,Print.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Stream.cpp,-o,Stream.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Tone.cpp,-o,Tone.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBCore.cpp,-o,USBCore.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/WMath.cpp,-o,WMath.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/WString.cpp,-o,WString.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire/Wire.cpp,-o,Wire.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\libraries\Servo\src\avr/Servo.cpp,-o,Servo.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++.exe
-c,-g,-Os,-w,-fno-exceptions,-ffunction-sections,-fdata-sections,-MMD,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=156,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,-IC:/Program Files (x86)/Arduino/libraries/Servo/src,-IC:/Program Files (x86)/Arduino/libraries/Servo,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/Wire/utility,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/libraries/SoftwareSerial,C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial/SoftwareSerial.cpp,-o,SoftwareSerial.cpp.o
9-7 10:54: Process exited with 0
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc.exe
-c,-g,-x,assembler-with-cpp,-mmcu=atmega328p,-DF_CPU=16000000L,-DARDUINO=10605,-DARDUINO_AVR_UNO,-DARDUINO_ARCH_AVR,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino,-IC:/Program Files (x86)/Arduino/hardware/arduino/avr/variants/standard,C:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino/wiring_pulse.S,-o,./wiring_pulse.S.o
9-7 10:54: ####Error####
avr-gcc.exe: error: C:/Program Files (x86)/Arduino/hardware/arduino/avr/cores/arduino/wiring_pulse.S: No such file or directory
9-7 10:54: ####Error####
avr-gcc.exe: warning: ‘-x assembler-with-cpp’ after last input file has no effect
avr-gcc.exe: fatal error: no input files
compilation terminated.9-7 10:54: Process exited with 1


#12

this means something isn’t in the right place on your computer.