Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    25+ Posting Member



    Join Date
    Jan 2013
    Location
    EVCA
    Posts
    62
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Cool Arduino Software

    Hi there,

    While building my 737NG project I've decided to create custom turnkey solution for Arduino.

    Software (and firmware) is designed to be used with standard inputs and outputs and custom-built circuits (to support 7-segment displays, in/out extension, etc).

    You can find download link and instructions here and I'd appreciate any feedback on this project.
    Building 737NG cockpit and developing Arduino router software. My blog: http://737ng.info

  2. Thanks iwik, skino thanked for this post
    Likes iwik, skino liked this post
  3. #2
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    Nice to see another interface using cheap readily available hardware.
    ill be testing, just awaiting a module.
    Keep up the good work and your efforts and sharing with the community are very much
    appreciated.
    Les

  4. #3
    150+ Forum Groupie
    Join Date
    Feb 2007
    Location
    Argentina
    Posts
    187
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    Hello.
    Can you post an example for using your soft? (like turn on led with landing gear down).
    Just downloaded NGConnect 0.2 and upload firmware, but i don´t know how to set the connection with IOCP client.
    My setup is with IOCP in port 8092.
    I must change iocpserver.ini in modules folder of Flight simulator or where?.
    How to select IOCP variable in link name? (by variable number ?)
    Any help is appreciated.
    Horacio.

  5. #4
    25+ Posting Member



    Join Date
    Jan 2013
    Location
    EVCA
    Posts
    62
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    Which client software are you using? You need to establish connection between NGConnect and Arduino (by adding device with appropriate COM port number on Devices tab) and add OUTPUT type variable on Variables tab. For this variable you'll also need to assign IOCP variable name which is associated with landing gear. NGConnect accepts IOCP connections on port 8811.
    Building 737NG cockpit and developing Arduino router software. My blog: http://737ng.info

  6. #5
    150+ Forum Groupie
    Join Date
    Feb 2007
    Location
    Argentina
    Posts
    187
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    Quote Originally Posted by pshz11 View Post
    Which client software are you using?
    Flight Simulator 9, with IOCPServer 3.0, and SIOC 4.5

    Quote Originally Posted by pshz11 View Post
    You need to establish connection between NGConnect and Arduino (by adding device with appropriate COM port number on Devices tab) and add OUTPUT type variable on Variables tab.
    Done. I can see the analog input random values with no potenciometer connected, so connection is ok.


    Quote Originally Posted by pshz11 View Post
    For this variable you'll also need to assign IOCP variable name which is associated with landing gear.
    Offset (0329)-GEAR_HANDLE_POS In variable name, i must put GEAR_HANDLE_POS or (0329) or 0329 or what?

    My little test that I want to implement:

    If Handle is up (0)=led 13 off. if handle is down (16383) = led 13 on

    Quote Originally Posted by pshz11 View Post
    NGConnect accepts IOCP connections on port 8811.
    I do not understand this part.

    Thanks for your inmediate response and patience.

    Horacio.

  7. #6
    25+ Posting Member



    Join Date
    Jan 2013
    Location
    EVCA
    Posts
    62
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    New release of NGConnet: http://737ng.info/post/149

    Now it supports direct encoder connection.

    Sorry, Horacio, I still had no opportunity to test with SIOC configuration. I've only tried to connect SIOC as client to my software and it had just worked.
    Building 737NG cockpit and developing Arduino router software. My blog: http://737ng.info

  8. #7
    150+ Forum Groupie
    Join Date
    Feb 2007
    Location
    Argentina
    Posts
    187
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    pshz11:

    Let me try another way to ask...

    Can you read IOCP values (for example, heading compass from Flight Simulator) and show that info in a 7 digits led display?

    Where in the software you import the value or how i can read a value from IOCP or SIOC running, and if i can see the value inside NGConnector?

    Thanks.
    Horacio.

  9. #8
    25+ Posting Member



    Join Date
    Jan 2013
    Location
    EVCA
    Posts
    62
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    Currently, IOCP is supported as server side. It means, that you'll need to establish IOCP connection with NGConnect on port 8811. SIOC is able to do that and here's the working configuration I have (sioc.ini):

    IOCPclient0_disable=No
    IOCPclient0_host=localhost
    IOCPclient0_port=8811
    After that you can probably send any values from SIOC to this specific client connection.

    LED displays are not supported yet, but you can use 7-segment displays through MAX7219 drivers.
    Building 737NG cockpit and developing Arduino router software. My blog: http://737ng.info

  10. #9
    150+ Forum Groupie
    Join Date
    Feb 2007
    Location
    Argentina
    Posts
    187
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    First test with leds ok!!!

    For to maximize the versatility of SIOC, i use IOCP Client Module #1 of SIOC in port 8811 to connect NGConnect 0.3, leaving SIOC in 8092 and Client #0 in 8090 to keep IOCPServer from FS9.
    To reflect in SIOC, at which client connect, you must define device 1 in every SIOC variable to read or write to NGConnect 0.3


    I can turn on or off simple leds by SIOC scripts (landing gear down= green led on- yellow off, landing gear In transit led green off-yellow on, retracted green and yellow off, etc , battery master off=red led on, and so on.......)
    All based in SIOC scripts.
    NGConnect 0.3 log show correct messages send to leds (CLIENT:Arn.Resp:22=1 ,etc) or received from SIOC

    But....

    I have connected a button, a switch, a potenciometer and a gray encoder, but no accion to SIOC.

    For button, switch, potenciometer or encoder NGConnect 0.3 shows (ME:Arn.Resp:4=1 , etc)

    In NGConnect 0.3, the variables tab show working inputs (button or switch change value to 1 when pressed, potenciometer change variable from 0 to 1023, encoders increases or decreases the variable from 0 to 65535, (great work on code for encoders)

    That´s the Arduino Mega receives data ok, but no sends to SIOC.

    I understand the sent message should be CLIENT:Arn.... and not ME:Arn....

    I am doing something wrong?

    Sorry if my english is no good.

    Thanks for your attention and keep the work on with this software.
    Horacio.

  11. #10
    150+ Forum Groupie
    Join Date
    Feb 2007
    Location
    Argentina
    Posts
    187
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Arduino Software

    Loading NGConnect 0.3.ino show compilations errors......
    This is the log:



    Arduino:1.6.5 (Windows XP), Placa:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"


    Utilizando biblioteca SPI en carpeta: C:\Archivos de programa\Arduino\hardware\arduino\avr\libraries\SPI


    Utilizando biblioteca Ethernet en carpeta: C:\Archivos de programa\Arduino\libraries\Ethernet






    C:\Archivos de programa\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Archivos de programa\Arduino\hardware\arduino\avr\cores\arduino -IC:\Archivos de programa\Arduino\hardware\arduino\avr\variants\mega -IC:\Archivos de programa\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Archivos de programa\Arduino\libraries\Ethernet\src C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\LedControl.cpp -o C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\LedControl.cpp.o


    C:\Archivos de programa\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Archivos de programa\Arduino\hardware\arduino\avr\cores\arduino -IC:\Archivos de programa\Arduino\hardware\arduino\avr\variants\mega -IC:\Archivos de programa\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Archivos de programa\Arduino\libraries\Ethernet\src C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp -o C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp.o


    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:40:0: warning: "HIGH" redefined [enabled by default]
    #define HIGH (1)
    ^
    In file included from C:\Archivos de programa\Arduino\hardware\arduino\avr\libraries\SPI/SPI.h:17:0,
    from C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:35:
    C:\Archivos de programa\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:40:0: note: this is the location of the previous definition
    #define HIGH 0x1
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:41:0: warning: "LOW" redefined [enabled by default]
    #define LOW (0)
    ^
    In file included from C:\Archivos de programa\Arduino\hardware\arduino\avr\libraries\SPI/SPI.h:17:0,
    from C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:35:
    C:\Archivos de programa\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:41:0: note: this is the location of the previous definition
    #define LOW 0x0
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:44:0: warning: "OUTPUT" redefined [enabled by default]
    #define OUTPUT (0)
    ^
    In file included from C:\Archivos de programa\Arduino\hardware\arduino\avr\libraries\SPI/SPI.h:17:0,
    from C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:35:
    C:\Archivos de programa\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:44:0: note: this is the location of the previous definition
    #define OUTPUT 0x1
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:45:0: warning: "INPUT" redefined [enabled by default]
    #define INPUT (1)
    ^
    In file included from C:\Archivos de programa\Arduino\hardware\arduino\avr\libraries\SPI/SPI.h:17:0,
    from C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:35:
    C:\Archivos de programa\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:43:0: note: this is the location of the previous definition
    #define INPUT 0x0
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp: In member function 'void MCP:inMode(uint8_t, uint8_t)':
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:105:11: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
    if (pin < 1 | pin > 16) return; // If the pin value is not valid (1-16) return, do nothing and return
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp: In member function 'void MCP:ullupMode(uint8_t, uint8_t)':
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:124:11: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
    if (pin < 1 | pin > 16) return;
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp: In member function 'void MCP::inputInvert(uint8_t, uint8_t)':
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:143:11: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
    if (pin < 1 | pin > 16) return;
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp: In member function 'void MCP::digitalWrite(uint8_t, uint8_t)':
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:161:11: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
    if (pin < 1 | pin > 16) return;
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:162:11: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
    if (pin < 1 | pin > 16) return;
    ^
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp: In member function 'uint8_t MCP::digitalRead(uint8_t)':
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\MCP23S17.cpp:205:13: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
    if (pin < 1 | pin > 16) return 0x0; // If the pin value is not valid (1-16) return, do nothing and return
    ^
    C:\Archivos de programa\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Archivos de programa\Arduino\hardware\arduino\avr\cores\arduino -IC:\Archivos de programa\Arduino\hardware\arduino\avr\variants\mega -IC:\Archivos de programa\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Archivos de programa\Arduino\libraries\Ethernet\src C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\Module_ENCODERS.cpp -o C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\Module_ENCODERS.cpp.o


    In file included from C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\Module_ENCODERS.cpp:3:0:
    C:\DOCUME~1\Magoo\CONFIG~1\Temp\build2357563284046903563.tmp\Module_ENCODERS.h:3:18: fatal error: string: No such file or directory
    #include <string>
    ^
    compilation terminated.
    Error de compilación

Page 1 of 3 123 LastLast