

PanelBuilder
Members-
Posts
286 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by PanelBuilder
-
Here's one other option to look at: http://www.hagstromelectronics.com/products/modules.html Cheers, Colin
-
Jocman's Cockpit (will be a long, long work....)
PanelBuilder replied to Jocman's topic in Home Cockpits
Good to hear from you. Stay it touch man. Colin -
Anyone connected a potentiometer to A-10C yet?
PanelBuilder replied to TigersharkBAS's topic in Home Cockpits
This could work without lua if the board can send the keypress for up when you turn the encoder right and the keypress for down when you turn the encoder left. There are no stops with an encoder and no way to poll for position, say at startup. Cheers, Colin -
Anyone connected a potentiometer to A-10C yet?
PanelBuilder replied to TigersharkBAS's topic in Home Cockpits
Hi, This card allows you up to 8 analog axes which is very nice. However, in BS at least, we cannot connect analog axes to simple pot inputs like the Abris brightness. We have to send data to lua over TCP for that. Cheers, Colin -
-
I wonder if we ought to have a sticky with a basic Export.lua file? The reason I ask is there's new people coming into this all the time. They haven't spent 2 years getting this stuff to work and it must be a challenge. I was thinking maybe just a simple script with like: dofile("./Scripts/Aircrafts/Ka-50/Cockpit/devices.lua") LuaExportStart() LuaExportBeforeNextFrame() (import one switch state) LuaExportAfterNextFrame() (export one lamp state) LuaExportStop()
-
Thanks Gadroc. I guess that's what I'll have to do. Cheers, Colin
-
I wonder if any lua experts can shed some light on this. The Abris power switch works as expected. Send it a 1 and it goes up/on. If it's already up it just stays there. Same for 0 and down/off. But the Abris itself changes state on or off whenever it gets a 0 or 1 regardless of the switch setting. This is not a good thing, because if you send it your switch state at startup and it's 1, and the it's already on, the Abris turns off. Can anything be done about this? Thanks everyone. Colin
-
-
Hey Pitbldr, I got the panel. This is truly a thing of beauty and a joy to behold. Folks, I would post a photo but the photo I took just doesn't do it justice. Cheers, Colin
-
Hi all, Does LuaExportStart() work the same in A-10 as BS? Here's what I have for BS: function LuaExportStart() dofile("./LuaSocket/Socket.lua") socket = require("socket") host = "127.0.0.1" port = 14000 client = socket.try(socket.connect(host, port)) client:setoption("tcp-nodelay",true) -- set immediate transmission mode client:settimeout(.01) socket.try(client:send("/*$")) -- all boards run normal end Thanks, Colin
-
Basically, I send a "0" for every left click and a "2" for every right click. Then at the lua end I subtract 1 to get either -1 or 1. Then I divide by 16 and use that for the performClickableAction. Hope that helps a little bit, Cheers, Colin
-
3 or 4 bit (0 to 7 or 0 to 15) are configured the same: Cheers, Colin
-
You don't want to use a gray code encoder for the cursor; you want to use a 2-bit incremental encoder. Cheers, Colin
-
Attaching the FTDI cable: Orange Yellow Black Red From the top. Note the orientation of the board, though. Two wires taped back (unused): Brown and Green. Also, there's a 10K pullup resistor shown on the left between red and yellow. There needs to be one per string, i.e. if you have 6 boards on one FTDI cable, only one of them gets the resistor. Cheers, Colin
-
This is amazing work. Are the 2 layers glued together or are they separate? The under layer has the larger holes for the mounting hardware for the switches, right? I'm thinking there could be a need for clearance holes for other things besides switches, like bolts for circuit boards or strain reliefs. These would have to be drilled by each person according to their needs. Either glued together or separate would work but separate might be easier. TIA, Colin
-
Configuring the USI-16 switch interface for a 2-bit incremental encoder. http://www.youtube.com/watch?v=EMH5jKWRB8I
-
Thanks pitbldr. It's boards and the GUI to configure them. I'm not suprised you couldn't find anything on them -- I just came up with the name a little while ago. I only have six at the moment but I'd like to get some of them out there. I'm not trying to make money on these but on the other hand I can't afford to loose to much either. I guess they'd be about 20 bucks. Only thing is, you need one of these: TTL-232RG-VSW5V-WE or TTL-232R-5V-WE at: http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm Cheers, Colin
-
Showing how to configure a 5-position rotary switch: Cheers, Colin
-
This is kind of an overview. I want to do a shorter seperate video for each switch type. Also,I make no claims that the lua code at the end is the best possible lua code, but I think it's clear at least. Cheers, Colin
-
Jocman's Cockpit (will be a long, long work....)
PanelBuilder replied to Jocman's topic in Home Cockpits
Take care man. Colin -
Jocman's Cockpit (will be a long, long work....)
PanelBuilder replied to Jocman's topic in Home Cockpits
OK listen :smilewink: Encoder-type inputs like the HSI expect a value between -1 and 1 and are cumulative. Pot-type inputs like the Baro expect a value between 0 and 1 and are not. Which is why if you use an encoder on this one you need to do an extra step. If the value from your encoder is val, you can't do this: performClickableAction( id, val ) You have to do something like this: baro_total = baro_total + val performClickableAction( id, baro_total ) Give it a shot. I swear this works. Cheers, Colin -
Jocman's Cockpit (will be a long, long work....)
PanelBuilder replied to Jocman's topic in Home Cockpits
Hi Jocman. I think I overstated the case when I said this one works real well with a pot. I probably should have said it works OK. You're not going to get the granularity you get with the mouse wheel. I think pots work best for things like Abris brightness where you only need like 32 different levels. You can hook an encoder up to this one but the sim expects to get a value between 0 and 1 so you need to keep a running total and increment or decrement it as each pulse comes in, say by .005. That actually does work real well. Hope this helps a little bit, Colin -
Jocman's Cockpit (will be a long, long work....)
PanelBuilder replied to Jocman's topic in Home Cockpits
Yes :smilewink: This one works real well with a pot. Cheers, Colin