Hi Guys and Gals,
I am newer than what noobs is and do not know coding.
if any one can help me out with a sketch / code:
My Logitec Pedal started funking-about. I bought 3x potentiometers, but, for now I only want to use 2:
Later I would like to use the third one for Clutch, but that is not important now.
I have just got the Arduino Leonardo and wired the units up as I have seen how to do it.
I have wired:
A1 for Brakes
A2 for Accelerate / Throttle
I want to use the pedals as separate USB hence for buying the Arduino
I am asking pritty please if someone could sketch me a code for this, please, please,,
freakinguser:
I am asking pritty please if someone could sketch me a code for this, please, please,,
It is highly unlikely you'll find some who will just "sketch me a code". We can help if you take your best try but if you want to hire someone to sketch you a code try posting in Jobs and Paid Consultancy
freakinguser:
I am asking pritty please if someone could sketch me a code for this, please, please,,
I believe this post is similar to what you need:
Car Simulator Arduino Pedals : 7 Steps (with Pictures) - Instructables
I think you will find that "many" Arduino projects have something representative on the Internet if you craft a query carefully.
You can use your favorite search engine and find what you want. Your name speaks for you.
1 Like
Thank you for "what ever info" you have replied that is NON worth. Managed to find that would help me out and I want to say: Thank YOU - the original poster - link provided.
it is simple. there are three section: before setup(), setup() itself and loop(). combine same sections together.
#include <Joystick.h>
Joystick_ Joystick;
and
Joystick.begin();
need only once.
Some "useless" question and notes I have thought about after reading "this" "post's":
This is "Open Source" Software??
This is "To 'HELP' people OUT when in: NEED, STRUGGLE for Coding, Writing to WORK, MANAGE The Arduino Board....???
AGAIN! Thank You to THIS Helper:
it is simple. there are three section: before setup(), setup() itself and loop(). combine same sections together.
#include <Joystick.h>
Joystick_ Joystick;
and
Joystick.begin();
need only once.
YOU ARE A CHARM!!!
kolaha
December 18, 2022, 10:24am
7
You are welcome.
Post your result here when you done.
I have change things in the Code but getting this ERR:
C:\Users\RobertO\Documents\Arduino\Temp Backup\sketch_dec13a\sketch_dec13a.ino:1:10: fatal error: Pedal.h: No such file or directory
#include <Pedal.h>
^~~~~~~~~
compilation terminated.
exit status 1
Compilation error: Pedal.h: No such file or directory
My Code is:
#include <Pedal.h>
Pedal_ Pedal;
int Brake_ = 0;
int Throttle_ = 0;
int Clutch_ = 0;
const bool initAutoSendState = true;
void setup()
{
Pedal.begin();
}
void loop(){
Brake_ = analogRead(A1);
Brake_ = map(Brake_,1023,0,255,0);
Pedal.setBrake(Brake_);
Throttle_ = analogRead(A2);
Throttle_ = map(Throttle_,1023,0,255,0);
Pedal.setThrottle(Throttle_);
Clutch_ = analogRead(A3);
Clutch_ = map(Clutch_,0,1023,0,255);
Pedal.setClutch(Clutch_);
delay (00);
}
Any help please??
freakinguser:
My Code is:
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
See also FAQ - Arduino Forum for general rules on forum behaviour and etiquette.
Hello,
Welcome to the Arduino Forum.
This guide explains how to get the best out of this forum. Please read and follow the instructions below.
Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is fru…
Pedal.h: No such file or directory
Do you have the Pedal library installed and if so how did you install it ?
system
Closed
July 5, 2023, 12:58pm
11
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.