Help im confused

im building a Sim racing pedal set, i have a micro board connected to a sensor, i need a code that will allow me to have to pressure sent a signal to my pc through the usb to a analog input please respond and give me information or help me. i have a dirt bike mastercylender connected to a 300psi transducer/pressure sensor,how do i make it as a input controller(analog) i have the it reading the input in the ardiuno program just not in the game

Hello hogan_lawson6
Post your sketch, well formated, with comments and in so called code tags "</>" and schematic to see how we can help.

Hi,

Do you mean you have an analog signal from a pressure sensor connected to a brake master cylinder?
You want to input the sensor signal into a microcontroller to convert that pressure into a signal through the USB port of the PC to interface with your SIM program.

Have you got the other inputs working through the USB yet, or is this the first sensor you are attempting?

Can you please tell us your electronics, programming, arduino, hardware experience?

Thanks.. Tom.... :smiley: :+1: :coffee: :australia:

yes and im try to get the signal to register in a racing simulator, i have a Arduino micro

Which one?

Boards with the main chip being USB capable, Arduino will let you use HID mode to be a stick, mouse, and/or keyboard. Every PC sees HID as an input device, the protocol is all set and the IDE takes care of that.

Arduino Micro, Leonardo and I think that the Due all do this, just not sure they make the Micro any more.

There are also the PJRC Teensy boards. The Teensy 2 predates the Micro and Leonardo which use PJRC open software. They don't make knockoffs, they make exotics. I have two Teensy 2.0++ with USB, 8K RAM and 5V AVR pins. The Teensy 3's have 3V ARM chip and very weak, easy-burn pins.

Teensy 2.0 has 12 Analog Inputs for 12 HID axes.

Woah! PJRC quit making them, DigiKey has 38 made by Adafruit in stock for < $20.
DigiKey, US electronics sellers.

iracing

Some Sims will let you communicate over serial or Ethernet/WiFi. I didn't see any mention of that in a (very) brief glance at the iracing site.

If that's so, you'll need one of the Arduinos that @GoForSmoke mentioned so you can pretend it's a joystick.

A stick axis can be a turnpot or slider... twist grip or clutch/brake handle.

I can't get into bike sims, there's no FEEL.

what about presser transducer?

Use whatever you have - if the Arduino can read it you can send it to the sim. There may be some transformation logic you need to get the feel you need of course.

Does it have an output? Do you have a multimeter?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.