Skip to content
Snippets Groups Projects
Commit c0156c09 authored by Kyrre Ness Sjobaek's avatar Kyrre Ness Sjobaek
Browse files

readme writing

parent 86fa499f
Branches
No related tags found
1 merge request!1Fixes output formatting and variable initialization, moving config to separate file, project folder correctly named, hopefully fixes network crashes
......@@ -13,11 +13,17 @@ To connect to standard readout method, use netcat as follows (assuming the IP ad
To connect to web interface, point your web browser at (note http, not https):
* `http://192.168.1.31/`
The code is fully contained in the file `PositionGaugeServer.ino`.
It depends on only the standard Arduino libraries and the Ethernet library in order to support the Ethernet shield .
It is tested and deployed with an Arduino Uno and a Ethernet Shield v2, connected to two gauges (model nr?).
The code can be configured to support a variable number of gauges, network configurations, Arduino pinouts, and update intervals and timeouts by editing the **top** part of `PositionGaugeServer.ino`; the bottom part will reconfigure automatically.
Note that for any deployment you **must** set the correct MAC address in the code file.
The code logic and global variable definition is contained in the file `PositionGaugeServer.ino`.
The configuration which must be changed by the user needs for each deployment is contained in the header file `PostionGaugeServer_config.h`, both in the `PositionGaugeServer` folder, and includes:
* Ethernet MAC address (**must** be set differently for each deployment)
* DHCP or fixed IP configuration
* Refresh intervals
* Timeouts
* Number of gauges to connect
* Pins to use for communication with gauges
The project only depends on the standard Arduino libraries and the Ethernet library in order to support the Ethernet shield .
It is tested and deployed with an Arduino Uno and a Ethernet Shield v2, connected to two gauges, as shown in the picture below.
The schematic for the connection to the gauge (provided by Roger Cheng) looks like:
![Simple schematic](/schematic.png)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment