Compare commits

...

2 commits

Author SHA1 Message Date
711e86f918 Begin writing motor control system 2017-01-19 19:53:16 +00:00
63dbbdde0a Add NeoPixel link 2017-01-19 19:52:14 +00:00
5 changed files with 12 additions and 6 deletions

View file

@ -142,7 +142,7 @@ bool PixelBot::Tick()
return true;
}
bool PixelBot:processCommand(String command)
bool PixelBot::processCommand(String command)
{
return false;

View file

@ -13,6 +13,10 @@ public:
private:
int motorLookup[8] = {B01000, B01100, B00100, B00110, B00010, B00011, B00001, B01001};
}
int motorSpeed = 1200; //variable to set stepper speed
int count = 0; // count of steps made
int countsperrev = 512; // number of steps per full revolution
};

View file

@ -105,7 +105,6 @@ namespace PixelHub.Server
while(true)
{
TcpClient nextClient = await server.AcceptTcpClientAsync();
Console.WriteLine("Got connection");
AsyncTools.ForgetTask(Handle(nextClient));
}
// TODO: Add an shutdown CancellationToken thingy here

View file

@ -23,8 +23,8 @@ namespace PixelHub.Server
IPAddress.Parse("239.62.148.30"), port,
beaconWriter
);
beacon.LocalIP = IPAddress.Parse("192.168.0.5");
beacon.NetworkInterfaceName = "wlan0";
beacon.LocalIP = IPAddress.Parse("10.42.0.1");
beacon.NetworkInterfaceName = "wlp2s0";
PixelHub server = new PixelHub(port, serverWriter);
//server.BindAddress = IPAddress.Parse("10.42.0.1");

View file

@ -17,3 +17,6 @@ A combination of a C# server and an arduino program that allows the control of a
- [Sockoverflow answer](http://stackoverflow.com/questions/2192548/specifying-what-network-interface-an-udp-multicast-should-go-to-in-net)
- [IPv4InterfaceProperties](https://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipv4interfaceproperties(v=vs.110).aspx)
### Bits and Bobs
- [NeoPixel](https://www.aliexpress.com/item/12-Bits-12-X-WS2812-5050-RGB-LED-Ring-Lamp-Light-with-Integrated-Drivers/32674296246.html?ws_ab_test=searchweb0_0,searchweb201602_2_10065_10068_10000009_10000032_10084_10000025_10083_10000029_10080_10082_10081_10000028_10110_10111_10060_10112_10113_10062_10114_10115_10056_503_10055_10054_10059_10000044_10099_501_10078_10079_10000022_10000012_10103_429_10073_10102_10000015_10000035_10096_10000018_10000019_10052_10053_10107_10050_10106_10051-10050,searchweb201603_3,afswitch_1,single_sort_3_default&btsid=d363368f-3ac5-4403-8a5a-6457cb863a7b)