User Tools

Site Tools


Sidebar

Dan's Wiki

DokuWiki Instructions (local) DokuWiki Manual
Site Checker (Orphans Wanted)

Edit Sidebar

projects:a4sim:diary

This is an old revision of the document!


A-4 Simulator Restoration Diary

DateNotes
8/10/2019Moved A-4 Simulator From Gary Allen's home in Lake Steven's to my carport in Renton
8/12/2019Don gave permission to disassemble unneeded electrical and hydraulic parts. None of the gauges were connected to anything. Hydraulic lines mostly connected only to internal couplings, and not to anything active (no pumps, etc.)
8/12/2019Spent 2 hours removing unneeded electrical and hydraulic parts. Removed side controls for trough access. None of the controls were connected to anything.
8/13/2019Spent 2 more hours removing more unneeded parts. Removed seat.
8/14/2019Spent 1 hours removing some bolts which connect sim to dolly, in preparation for moving the sim into my living room.
8/15/2019Met with Don to discuss how to proceed. I will be inventorying the gauges and Don will check to see if he has A-4 Simulator gauges. At this point, the A-4 Simulator seems to have only actual gauges.
8/16/2019Did research on force feedback. Appears that some people have attempted this. They connect a servo to an encoder-equipped steering wheel, then attempt to control the servo torque by using PWM. Not all driver chips support variable torque like this. They mention the Logitech G29 (a gamer steering wheel) has force feedback but costs $399
8/21/2019Experimented with the X27 168 steppers. Was able to connect directly from an Ardino Nano to the 4 coil pins. Didn't use diodes (yet). Running sweeping test code, occasionally the stepper will chatter, then move perhaps 30 degrees and continue running. Not sure if there is noise. Tried using another stepper motor, same result.
8/21/2019Tried using AccelStepper library. This seems to be more for propulsion type stepper motors. Mostly it keeps accelerating between stop points. Probably not suitable for gauge use.
8/21/2019Had more success with the X27 168 by not incrementing through steps, and instead jumping directly to values in an array. Also, I think I had the wiring wrong. I found a test which merely rotated clockwise, then Counterclockwise and my set up was backwards. When looking at the pins from the back, counter-clockwise from upper right, the pins are 1, 2, 4, 3. I have these connected to digital outputs 2, 4, 7, 6 on the Arduino respectively.

After rewiring, and adjusting the code, the pointer (heat-glued on for now) is doing much better.
9/7/2019Was able to get the little Japanese stepper motors to work. These have 4 pins and are the size of a large pencil eraser. Trying not to use AccelStepper because of its licensing. If these are to be usable, will need to do *microstepping* because they only have about 40 positions. The pins are quite fragile. Need to order very small wire to prevent ripping the pins off.
9/7/2019Worked several hours today and yesterday trying to get the RREF part of UDP communications to work between the Raspberry Pi and X-Plane 11.36r2. After looking at the log.txt, it appears that when I send a request for a Dataref to be sent, it starts sending the data on a random port. And I can't determine that port - only available in Log.txt. Sent a Bug report to X-Plane to see if they will take a look. Right now, I'm coding on the Raspberry Pi via Geany, which is a GUI application. I am using VNC to remotely access the Raspberry Pi. At this point, the code is all “play” - trying to get the communications to work. Was successful in sending from the Raspberry Pi to run a X-Plan Command (Flaps Up), and it works perfectly. Wrote a4SimData.json in the Projects A4Simulator directory. Considering letting one file be read by a like X-Plane plugin, as well as by the Raspberry Pi Connector code.
projects/a4sim/diary.1567908619.txt.gz · Last modified: 2019/09/08 02:10 by dwheele