Hi, I am new to arduino. I already posted this in the spanish subforum, but could not find anyone that helps me out.
I am trying to replicate this project: HOW TO MAKE A USB ANALOG HANDBRAKE | SIM RACING DIY EBRAKE - YouTube
What I did:
I installed arduino 1.8.0.
Then I copied the "pro micro" driver from here: https://giltesa.com/wp-content/uploads/2014/02/SF32u4_boards-master.zip
https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/all
The I selected in Tools>Board>Arduino pro or pro mini and clicked Verify > I get this error:
Build options changed, rebuilding all
In file included from \\TOWER\data\juegos\00 racesim\00 elementos\freno mano\Analog-E-Brake-master\Analog-E-Brake-master\ANALOG_EBRAKE\ANALOG_EBRAKE.ino:8:0:
C:\Program Files (x86)\Arduino\libraries\Joystick/Joystick.h:31:2: error: #error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
#error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
^
exit status 1
Error compiling for board Arduino Pro or Pro Mini.
Then I selected in Tools>Board>Arduino sparkfun pro micro. I get this message:
Archiving built core (caching) in: C:\Users\rafa\AppData\Local\Temp\arduino_cache_349843\core\core_SparkFun_avr_promicro_cpu_16MHzatmega32U4_0c812875ac70eb4a9b385d8fb077f54c.a
Sketch uses 6234 bytes (21%) of program storage space. Maximum is 28672 bytes.
Global variables use 218 bytes (8%) of dynamic memory, leaving 2342 bytes for local variables. Maximum is 2560 bytes.
Then I click compile sketch* and get this error:
*this is the sketch:
// Analog eBrake-Handbrake
// PIN A0 to 10k pot output - Throttle Axis
// Use with Arduino ProMicro.
// Tested and working in DiRT RALLY + ASSETTO CORSA
// by AMSTUDIO
// 20.1.2017
#include <Joystick.h>
void setup()
{pinMode(A0, INPUT);
Joystick.begin();}
const int pinToButtonMap = A0;
void loop()
{int pot = analogRead(A0);
int mapped = map(pot,0,1023,0,255);
{Joystick.setThrottle(mapped);}}
As shown in the youtube video of the project I am trying to replicate, in minute 8:42 is shown what I guess I should get to be able to calibrate the handbrake. But I het the previous error. Anyone can help me out?
Pls ask me any questions you need.
When I look at windows device manager>com ports> it only shows comms port_COM1 but "arduino is not shown. I remember I read "arduino pro" must be displayed. Also, at windows device manager>universal bus controller> the arduino (usb) is not properly recohnized (error in request of device description).
Hope to find any help.
Rgds