New here and starting a build

Support for Arduino in combination with Air Manager and Air Player

Moderators: russ, Ralph

Message
Author
Kiwi0ne
Posts: 7
Joined: Sun Jun 10, 2018 11:14 am

New here and starting a build

#1 Post by Kiwi0ne »

Hello all.
Emanuele is my name and I hate coding. Now, phew, feel betwr that I have just said it. Moreover, I don’t even understand the logic! But I am willing to give AM a shot.
Bought an Arduino Mega and will buy the Hispapanel 738 MCP panel+PCB today

I want to wire that MCP using the Arduino Mega and AM.

Now, I would need some help please:
1. Physically, how does a wire panel look like? Meaning, I have never seen how multiple switches, buttons, LEDs etc are wired together to an Arduino. Can somebody please some detailed pictures? Are the GNDs of each switch, button etc wired all together to a single GND pin on the Arduino? How do you connect those GNDs wire into a single one?

2. Will each panel of the cockpit (NAV, ADF, Fuel panel, etc etc etc ) need its own Arduino Mega board? Or there are extensions to the Arduino a Mega that can be attached to it to add more inputs and GNDs pin? I see only 2 GNDs pin on the Mega.

3. Hispapanels sent me the pin correspondence for their PCBs .
Using that, will I be able to wired that PCB to the Arduino?

4. Please be patient. These are probably silly questions but I need to start somewhere.

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: New here and starting a build

#2 Post by Corjan »

Hi,


Welcome!


1. All components (switches, buttons, LED's) need a common GND. So yes, you have to find some way to do that. There are some Arduino hat boards that might help you with connecting.

Maybe something like this?
https://www.amazon.com/Electronics-Salo ... B00UT13YXA

Or you could go with something like this. Note that you need soldering experience and additional components:
https://www.dhgate.com/product/prototyp ... 76936.html

There is no one answer here, you kinda have to figure out what works best for you.


2. An Arduino MEGA already has close to 52 pins that you can use drive LED's, switches etc. The GND is not an issue since you can split that to the components.

We have a list here that tells you what what component you can connect to which pin of the Arduino:
https://siminnovations.com/wiki/index.p ... _MEGA_2560


3. Think so, but I don't know the details of the Hispapanel.


4. We are :) Bottom thing when you start off is to not give up quickly. Programming can be annoying and frustrating at the start, but once you get the hang of it, it can (and probably will) become fun :)

Start off small with driving only one LED or something, and work your way up from there.

Code example of driving a LED to 100% brightness on pin D2 of the Arduino MEGA:

Code: Select all

hw_led_add("ARDUINO_MEGA2560_A_D2", 1.0)

Corjan

User avatar
Ralph
Posts: 7933
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: New here and starting a build

#3 Post by Ralph »

Maybe you can post the document from Hispapanels? It comes down to how they have routed their PCB.

Kiwi0ne
Posts: 7
Joined: Sun Jun 10, 2018 11:14 am

Re: New here and starting a build

#4 Post by Kiwi0ne »

Thank you very much for the info Corjan.
I will study what you have sent me and try to make sense of it.

First question: What do you mean that the GND is not an issue because I can split that to the components? Could you articulate please? :)




Ralph, here's the excel file that Manolo sent me.

Cheers!
E.
Mapeados PCB frontal v2.xlsx
(42.27 KiB) Downloaded 173 times

SimPassion
Posts: 5346
Joined: Thu Jul 27, 2017 12:22 am

Re: New here and starting a build

#5 Post by SimPassion »

For anyone, the PCB pinout lists are available here :
http://hispapanels.com/tienda/files2dow ... %20Eng.zip

Free online circuits simulation
https://www.tinkercad.com/circuits

SimPassion
Posts: 5346
Joined: Thu Jul 27, 2017 12:22 am

Re: New here and starting a build

#6 Post by SimPassion »

Here's some sample with tinkercad
Sample_01.jpg
Sample_02.jpg
Sample_03.jpg

SimPassion
Posts: 5346
Joined: Thu Jul 27, 2017 12:22 am

Re: New here and starting a build

#7 Post by SimPassion »

Sample with simulation, blocks and code
Sample_08.jpg
Sample_07.jpg

SimPassion
Posts: 5346
Joined: Thu Jul 27, 2017 12:22 am

Re: New here and starting a build

#8 Post by SimPassion »

Additionaly, here's wiring diagrams
viewtopic.php?f=35&t=1078

https://www.electroschematics.com/12012 ... r-arduino/
https://www.electroschematics.com/13858 ... dac-guide/
https://howtomechatronics.com/tutorials ... e-arduino/

And Hispapanels MCP Pinout (Warning ! it originally target Hispapanels SIMIO Boards !!!)
Sample_09.jpg
Sample_10.jpg
Last edited by SimPassion on Mon Jun 11, 2018 9:54 am, edited 1 time in total.

Kiwi0ne
Posts: 7
Joined: Sun Jun 10, 2018 11:14 am

Re: New here and starting a build

#9 Post by Kiwi0ne »

Thank you for those diagram and links Simpassion. Appreciate it very much.

What I am lacking is the practical part. Meaning, how do you route wires, mount the arduino on the panels, create a common ground wire/bus etc

SimPassion
Posts: 5346
Joined: Thu Jul 27, 2017 12:22 am

Re: New here and starting a build

#10 Post by SimPassion »

Here's an overview of what other are doing (to get inspired)
http://www.flaps2approach.com/system-in ... le-2-smar/

The idea is to start with a breadboard as there's common line for GND or POWER (3.3V or 5V)
and grow in a step by step with a real project
https://computers.tutsplus.com/tutorial ... -mac-54746

i'm using an external 12V power with additional DC/DC regulator for delivering stable and constant common 3.3V or 5V for all Arduino Boards
Warning !! : keep in mind that Arduino GND has to be wired together with external component common GND line to set an averall GND reference for the whole circuits. Otherwise logic won't work
https://www.pololu.com/search/compare/133

Tutorials
http://www.toptechboy.com/arduino-lessons/
Last edited by SimPassion on Fri Jun 15, 2018 4:00 am, edited 1 time in total.

Post Reply