PDA

View Full Version : Arduino Software



pshz11
05-03-2015, 02:37 PM
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 (http://737ng.info/post/73) and I'd appreciate any feedback on this project.

iwik
05-04-2015, 12:48 AM
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

hyamesto
06-09-2015, 05:46 PM
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.

pshz11
06-09-2015, 07:02 PM
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.

hyamesto
06-09-2015, 10:28 PM
Which client software are you using?

Flight Simulator 9, with IOCPServer 3.0, and SIOC 4.5


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.



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


NGConnect accepts IOCP connections on port 8811.

I do not understand this part.

Thanks for your inmediate response and patience.

Horacio.

pshz11
06-24-2015, 10:11 AM
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.

hyamesto
06-26-2015, 06:49 PM
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.

pshz11
06-27-2015, 04:30 AM
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.

hyamesto
07-09-2015, 03:10 AM
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.

hyamesto
07-14-2015, 01:05 AM
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::pinMode(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::pullupMode(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

pshz11
07-21-2015, 11:13 AM
Hi!

Arduino 1.6.x is not yet supported. You need to use Arduino 1.0.x

hyamesto
09-08-2015, 06:37 AM
Hi!
Any advance in the software?
Why the inputs on Arduino are no reflected in IOCP?
Thanks.
Horacio.

Conner
01-28-2016, 01:51 AM
Hello
I was planning on using your software and even had it downloaded but accidentally deleted it. For some reason your website is down? I get a 403 forbidden message.
Its great software and I hope you still have it up for download.
Thanks
Conner

hyamesto
01-28-2016, 01:51 PM
Conner:
I have NGConnect 0.2 and 0.3 in my hard disk. Let me know what version you need....
Send me a Private Message.
Regards.
Horacio.

Conner
01-28-2016, 10:42 PM
Conner:
I have NGConnect 0.2 and 0.3 in my hard disk. Let me know what version you need....
Send me a Private Message.
Regards.
Horacio.
Pm sent.;) Unless it didn't work:o.

pshz11
02-15-2016, 10:46 AM
Hi there,

Just put site back online. Hope to continue software developement soon :)

hyamesto
02-15-2016, 11:20 PM
http://737ng.info (http://737ng.info/)

Access to the web page was blocked. Show URL (http://737ng.info/#)


Threat: JS/Iframe.MA trojan

deskpilot
02-26-2016, 01:02 PM
Hello all, I am not good with some programs and the one that I need to use is giving me some troubles. How do I install the sketches/zip files into my Arduino Ide?. I was using 1.0.6 but just upgraded to 1.6.7. any help would be appreciated.
and I a looking for the Arduino LED control library for the MAX7219 display
Thank You
Deskpilot:

hyamesto
02-27-2016, 12:51 AM
From earlier post:

Arduino 1.6.x is not yet supported. You need to use Arduino 1.0.x

Regards.
Horacio

deskpilot
02-27-2016, 11:35 AM
Thank You, I will switch back to 1.0.6

HP.

m0ng00se
08-07-2016, 12:17 AM
anyone else having luck configuring the 7segments ? It asks for the DIN, CLK and LOAD pins which is fine, but then also asked for Pin ? What pin is this ? Can't get them to light up or do anything ?

donnacarter0103
09-26-2016, 03:36 AM
I am using IDE software for arduino. If you want camera for arduino then visit: Arduino starter kits (http://www.arduinostarterkits.com/resources/top-arduino-camera-module-shield/)