Hempstick OpenSource USB firmware for Joystick

Forum dedicado a Joysticks, HOTAS, Track-Ir, Freetrack, contrôles e cockpit's tipo "faça você mesmo", etc.
Post Reply
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Hempstick OpenSource USB firmware for Joystick

Post by 21_Sokol1 »

Hempstick é um firmware orientado para controles de simulação para ser gravado nas placas:

ATMEL Atmel SAM4S Xplained Pro Evaluation Kit (ATSAM4S-XPRO) - 39$ na ATMEL.
e
ARDUINO DUE

Características - algumas bem avançadas:
1. Uses Atmel's ARM 32bit MCUs, up to 120Mhz.
2. You buy the supported boards from either Atmel directly or buy the Arduino Due board from anywhere.
3. Contains FreeRTOS, a real-time operating system and is fully multi-threaded, unlike Arduino's dumb busy polling loop wasting CPU cycles.
4. Uses voltage level change event-based interrupt handlers tasks to read buttons and switches. No button press, no CPU cycles used.
5. Up to 16 channels of 12bit ADC. Contain a digital averaging noise filter. Can use over-sampling to increase resolution to 14bit w/ software (can do 16bit, but I personally feel it's quite phony so it's artificially limited to 14bit). ADC reading uses DMA freewheeling, without software intervention, so you always get the latest ADC values at the USB report time.

7. Reads TM Cougar and Warthog sticks with hardware (only for MCUs that have SSC modules, SAM4S and SAM3X), so it doesn't waste CPU cycles to generate the right wave form for the stick's buffer.

8. 1000 samples per second, max a full speed USB can do. There is plenty of CPU to do more, but no point of doing that.

9. Configure the USB VID/PID to anything you want. My CH rudder is, for instance, configured as TM16000, as I don't have any USB VID. Works just fine. Currently, these values are compiled in. A planed feature would let you configure them at runtime, as these are written in SRAM, unlike some written in ROM.

10. You get the source code, install the IDE, change a configuration file, press a button and it burns the firmware for you. Step-by-step instructions in the form of PDF and iBook. For some boards, you will need to buy a hardware programmer, but for some other boards, Atmel includes an EDBG chip on board that allows you to debug/program the MCU w/o additional hardware debugger.

Yes, you read that right, YOU BURN THE FIRMWARE. Don't worry, I have step-by-step screen shot instructions walking you through downloading/installing the software tools to pressing the button to compile/burn the firmware. Installing the IDE is not unlike installing a game program. After the installation, all you will need to do are unzip the source code, open the two projects, change a config file and press the build button.

11. Uses Atmel Software Foundation library, so supporting newer faster/better Atmel MCUs would be quite simple. For instance, I just got my paws on a SAM4E board that has a build in Ethernet on die, and Atmel's W23 WiFi module is just announced and availability is imminent.

Planed feature includes reading MLX90363 on SPI digital mode.
Este MLX90363 é um sensor HALL similar ao usado no Warthog/T.1600-M

Site: http://www.hempstick.org

Sokol1
Post Reply