Jump to content

Jocman

Members
  • Posts

    160
  • Joined

  • Last visited

About Jocman

  • Birthday 06/07/1973

Personal Information

  • Flight Simulators
    Dcs Ka-50
    MSFS 2020
  • Location
    Italy

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. As I understood, the STM32 analog input are working but the resolution isn't the best, so using an external ADC fix the problem and gives a better resolution I'll have a search for discord. Anyway, reading the freejoy documentation it seems that (as in my previous post) the wiring could be as descripted. But before etching a PCB I'll try on discord channel (hoping to get into...)
  2. Yep, you're right, this could be an easy and maybe more reliable solution, even thouh I've to read the doc, considering I made the slave boards (with the 74HC165 chains) and see how to wire them to the card. What can I say? DIY sickness? Anyway, as I already made the 2 slave PCBs and got the DAC, I'd like to try the quest. Keeping studing, maybe the solution to my question could be: - cyclic shift register chain CLK + collective shift register chain CLK + MCP3208 CLK > all to SPI SCK pin on STM32 - cyclic shift register chain DOut + collective shift register chain DOut + MCP3208 DOut > all to SPI MISO pin on STM32 - cyclic shift register chain Latch > to pin X on STM32 - collective shift register chain Latch > to pin Y on STM32 - MCP3208 Latch > to MCP3208 CS on STM32 Could this work?
  3. Hi all. As my home cockpit is getting on (my wife says she can see the light at the bottom of the tunnel, but I honestly not yet....), I' starting to work on the home made controls (cyclic, collective, rudder). Freejoy is my choice for the quest, so I started etching the PCBs. The cyclic is based on 2 shift register 75HC165 daisy chained, the collective on 3 shift register 75HC165 daisy chained: every PCB will host the shift registers.. As I will need 6 analog axis, I wish to ad an MCP3208 DAC. The PCBs for cyclic and collective are done, now I'm working on the main PCB (ST32 + MCP3208). Now my doubt: how to connect the MCP3208? The shift registers can share clock and load pins, the cyclic will have ad additional Input 1 pin, and the collective an additional Input 2 pin. As the MCP3208 owns a Clock and Load pins too, can these be shared with the 75HC165, or they need separate pins? As you can see, I planned to share the MCP3208 Clock pin with the 75HC165: is this correct? Attached a schematic related to second option (MCP3208 on separate pin). Your opinion and suggestion are obviously welcome. Thanks Jocman
  4. Slave proto made. Not all the components are present, but just to test if everything works. Btw, for the final version i'll change something: - Max487 feeded directly by arduino's +5V (keeping the possibility to select if feed arduino by 12 or 5V) - same thing for the 2 led Tx/Rx - added 2 leds to indicate the presence of 5V and 12V Next step, a new master pcb (but i'm waiting for the components from China) and a RS485 hub
  5. Thanks for your sharing, Vinc. Here's my possible new version of PCB (i use kicad). Is intended to be used with Nano (onboard) or,alternatively, Mega (wired). More, there is a rs485 through (from blue73 design). Possibility to feed Nano with 12 or 5 V (using a jumper) Jumper to power on/off the Max847 Jumper to enter in "onboard program mode" (i read on italian forum you need just to break the wiring RO→Rx to do it - hope is right). Btw,is it not enough to unpower the Max487? Max487 power led rx/tx led (with plugs to wire external led) 12V rail 5V rails Now I should make a prototype and test it. and someway fix my doubt on shielded/twisted wires (well, the distances could be important)....
  6. Not sure to understand (sorry, my poor english); currently I'm not feeding anything from the arduino 5V out. All 5V to the various stuff are provided by the PSU (5V 30A), wich, currently, feed arduino too via 5V pin. so Arduino is not overloaded with current In my plans for new PCB design, I'll use the 12V to feed Arduino via Vin pin, thus the 5V pin will be not connected to anything else. Aside this, anything about the need / not need to use twisted/shielded/both wires for AB signal?
  7. Ok,i won't do it. So i think i'll separate and use the 12v only to feed the arduinos and the 5v to feed the max487 chips and all the other stuff (leds,max7219,and so) I'm going on with re-design my PCBs,so i keep waiting for your advices.
  8. Hi all. After several years, I was pretty sure to see "the end of the tunnel": I realized almost the 90% of the physical cockpit (panels with leds, switches, displays, etc), and almost lost my right thumb while working on the metal body of the cockpit. Following the HanSolo RS485 tutorial, I realized the first working prototypes of RS485 network, then developed my "point of view" of PCB for the Nanos and Megas to use (about 30 in total). But things aren't going in the right way: most of the switches (7 nanos + 1 mega connected until now) seem working properly, but also strange behaviour: - delay in responding: even 1,5 sec between the press of a btn and the "virtual" answer, hoping it doesn't get "virtually" stucked (the physical btn is released, but the virtual keep being pressed); it happens even with the switches sometimes... - the mega giving no sign of life; until I physically unplug the TX/RX connectors and re-plug them.... - I tried to test some leds by the lamp test button (by pressing the virtual one): all the nanos got reset and restarted; I tried again a couple of times, and I had to reload all the sketches because they stopped giving any sign of life..... After reload the sketches, they started to work again (but with the above problems.....) Well, the solutions: trash everything and switch my mind to get a consolle and play only with platform games (horror and abomination!), or give it a chance (or more...) by changing something or all (and my right thumb thanks...) So, I will ask you for some info because of my raised doubts: - Can I power arduino with both 12 and 5 volts at the same time (one direct to Vin, the other on +5)? Until now I used only 5V (for everything), but maybe arduino could work better by using 12V and let him manage his internal power. But in case I'll have even the 5v option - Still about power: is fine to use a single PSU (my intent is to use an old PC PSU to power all the system-now I'm using a bench PSU)? - RS485 A-B signal: the 2 wires have to be twisted/shielded/both or 2 straight wires are enough? I see lot of you using a 5-6 wires flat cable, but on some electronic forum they talk about twisted/shielded wires.... - Still A-B signal. I've an alarm shielded cable coil (red/black 1,5 mm and 4 wires 1 mm): may I use the black and red for +12 and +5, and one of the small wires for GND (having so other 3 wires for A, B and 1 jolly)? - The master can manage 3 lines: is it better to divide the workload among the 3 lines, or even just one line shouldn't have any problem to manage tens of slaves? - I've seen that Blue73 (https://forum.dcs.world/topic/187748-modular-panel-wip/?do=findComment&comment=3775559) use the RS485 bus even to wire all the arduinos reset pin over the bus network. There's some reason to? - For my PCBs I'm using MAX487 chips; normally, for MAX486 chips I've read to put a 120ohm resistor between every A-B terminals. But if I'm right, it doesn't need with MAX487, is it? I'm sorry to annoy you with all those questions, but.... Thanks in advance for your help
  9. Well, after several days of testing (and swearing) suddenly something's changed. I don't know what....I just re-loaded the sketch on the board. For the sake of honesty, I tested an RS485 chain with 2 Nanos and 1 Mega. The 2 Nanos are correctly working (they communicate), but initially the mega kept not communicating. I tried (desperation?) by unplugging the dupont wires fromt TX0/RX0 and plugging into TX1/RX1 (with all the system still powered and connected to the master.) The mega started to communicate..... Then unpowered the system and powered again: the mega didn't work. Unplugged the wires again and plugged back to TX0/RX0: it started to work again.... Unpowered then powered: the mega didn't work again.....unplugged and plugged the wires again (this time on the same TX0/RX0): the mega works..... I don't understand, what's wrong???
  10. Thankyou very much for your suggestion. I'll read the post and meke some test. I'll post in the next days about the news.
  11. I made 2 interfaces. The one for the Nano hosts a Max487 chip (and the needed components), the connectors for the nano board and the pins for wiring the panels switches/leds/others. As the Nano board is very small, it is directly mounted on the interface PCB The one for the Mega board is smaller, as it hosts only the Max487 chip and the needed components. This interface is connected to Mega board via wires: the enabled pin for RS485 is the #2, while TX and RX are wired to TX1/RX1 pins. (attached the image of both the interfaces) With some dupont wires it's "easy" to connect "on the fly" the Mega board to the interface made fo the Nano and viceversa. This way I made the cross test, so I'm sure the interface for the Mega board works, thus the problem is the Mega board (i'm referring to a Mega board as slave). When I use a Nano with both type of interfaces, by pressing the physical button the virtual button is regurarly pressed. My plans are (or were??) to connect most of the panels to Nano boards, but for some panels (as the PVI800 keyboard) I'd like to use a Mega board via RS485 The RS485 master is obviously a Mega board direct via USB.
  12. Hi all. I've read several similar posts,but no solution worked to my issue. I self-made 2 type of rs485 interfaces (using MAX487): one such an embedded system for nano, one just the rs485 for Mega. The Nano embedded interface works very fine,all the Nanos connected work fine. But now I'm trying to connect a Mega (for the PVI800 keyboard). Well,it simply doesn't work..... I made some crossed test: - connect the Nano interface to Mega: it doesn't work - connect the Mega interface to Nano: it works - connected Mega as IRQ Serial : it works - connected Tx/Rx pin over all the Mega connection (tx/rx 0 to tx/rx 3) but no working When Mega is connected to its dedicated rs485 interface, the RX led stays off and the board doesn't work..... I tried with 2 different Mega Boards,but same result: if connected as IRQ Serial, both the boards do their job, but if connected via RS485 no way to make them work. Honestly i don't understand..... Both kind of interfaces are correctly working,so the problem is Mega, but why? Jocman
  13. Hi all. I tried to find out something about,but no luck.... Sifting through the .h library's files (dcsbios fork),i found several very interesting functions, like (i.e.) the excellent SwitchWithCover. While it is almost clear what should this function do, it is not really clear how to use it. By reading the code inside the library, you can get the way to use it,so did I. Nevertheless, by sifting the other .h files (like SyncingSwirches, RotarySyncingPotentiometer,etc etc) there are a lot of function (at least resting on their names) potentially very interesting and / or useful. Unfortunately, even digging into github fork's repo, you can't find a complete library reference (nor examples) of the improved dcsbios library. The only reference (and well documented with examples) reported is about the Ian's "original" dcsbios library, so is missing a lot of function. My question: does it exist a complete library reference of the Fork's expanded library, so to fully understand all the available functions, without be restricted to the...standard used functions (the ones documented)? Thanks all in advantage
  14. Going on with coding, time to pass to LWR. Easy one (8 LEDs and 1 BTN), nevertheless...... As the hardware test shows all the LEDs working (just a simple cycle in arduino), once launched the sim there's no way to see the BTN working..... You can push it whenever you want....nothing.... I double checked (but even triple quadruple, etc etc) everything about the BTN (DCSBIOS code, hardware wiring, etc etc) but nothing to do. By using a test sketch (the standard arduino example sketches) the BTN (so as the hardware wiring) works fine...... Any idea?
  15. About the T suffix I confirm, the FlightPanels library (at least, the one I got) have the T as suffix (reading directly the library). I got it from GitHub, or there's another website more updated where to get it? Currently, I wrote the code by manually building the line and getting the code from the HUB aircraft reference, but is there any aircraft reference adapted to FlightPanels? Nevertheless, by giving the command like Switch2PosT I get an error message; giving it without T, it does work.... Nope, you're right, it doesn't. But i made a try. Compiled the arduino file with the FlightPanels library and launched the HUB. It works. BTW, so as HUB is not updated (at least, until now) are you suggesting me to use the "old" command line DCSBIOS SOCAT? If so, wich release? And, when you say "some modifications can't be used with Hub.", what are you referring to? I know I'm almost....poor in new developments, but I'm spending all the freetime I can in trying to finish the building of my cockpit, and honestly I'm not so updated.... Thanks Jocman
×
×
  • Create New...