Results 1 to 10 of 22
Thread: Arduino Software
-
05-03-2015, 02:37 PM #1
- Join Date
- Jan 2013
- Location
- EVCA
- Posts
- 62
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
-
Post Thanks / Like - 2 Thanks, 2 Likes, 0 Dislikes
-
05-04-2015, 12:48 AM #2
- Join Date
- Jan 2007
- Location
- NEW ZEALAND
- Posts
- 899
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
-
06-09-2015, 05:46 PM #3
- Join Date
- Feb 2007
- Location
- Argentina
- Posts
- 187
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.
-
06-09-2015, 07:02 PM #4
- Join Date
- Jan 2013
- Location
- EVCA
- Posts
- 62
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
-
06-09-2015, 10:28 PM #5
- Join Date
- Feb 2007
- Location
- Argentina
- Posts
- 187
Re: Arduino Software
Flight Simulator 9, with IOCPServer 3.0, and SIOC 4.5
Done. I can see the analog input random values with no potenciometer connected, so connection is ok.
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
I do not understand this part.
Thanks for your inmediate response and patience.
Horacio.
-
06-24-2015, 10:11 AM #6
- Join Date
- Jan 2013
- Location
- EVCA
- Posts
- 62
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
-
06-26-2015, 06:49 PM #7
- Join Date
- Feb 2007
- Location
- Argentina
- Posts
- 187
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.
-
06-27-2015, 04:30 AM #8
- Join Date
- Jan 2013
- Location
- EVCA
- Posts
- 62
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
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
-
07-09-2015, 03:10 AM #9
- Join Date
- Feb 2007
- Location
- Argentina
- Posts
- 187
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.
-
07-14-2015, 01:05 AM #10
- Join Date
- Feb 2007
- Location
- Argentina
- Posts
- 187
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
Search Prettys Womans from your city for night
5.Sharing an Essay about PIC16F877