soundanalogous

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 91 total)
  • Author
    Posts
  • in reply to: Connect Andriod Phone via USB to Arduinos #1113

    Hi,
    This is not currently possible because BreakoutJS can only communicate over a websocket. It probably wouldn’t be to difficult to get it to work with PhoneGap. You’d need to swap out the WebSocket interface for PhoneGap’s serial interface. See the file Breakout/src/core/WSocketWrapper.js and how it is integrated into Breakout/src/core/IOBoard.js.

    in reply to: Connect Andriod Phone via USB to Arduinos #1112

    Hi,
    This is not currently possible because BreakoutJS can only communicate over a websocket. It probably wouldn’t be to difficult to get it to work with PhoneGap. You’d need to swap out the WebSocket interface for PhoneGap’s serial interface. See the file Breakout/src/core/WSocketWrapper.js and how it is integrated into Breakout/src/core/IOBoard.js.

    in reply to: Arduino Yun #1107

    It is not possible to use the Yun with Breakout server via the network port, because Breakout Server only bridges the serial port connection of an Arduino to the web via Websockets. However it is possible to run Breakout on a Yun without any computer involved (other than pushing the code to the Yun). I haven’t tried this in a few years so I’m not sure if these instructions work (and note the warning about potentially bricking the Yun): https://github.com/soundanalogous/yunBreakout.

    in reply to: ESP8266 #1099

    I don’t have any near term plans to support WiFi over Breakout.js. In order for something like this to work, I’d need to create a modified version of StandardFirmataWiFi that uses WebSockets because it’s not possible to make a direct TCP/IP connection directly from a web browser.

    I may support BLE at some point however because there is experimental BLE support in some web browsers.

    in reply to: connect two arduinos? #1095

    In StandardFirmata or StandardFirmataPlus, change these lines:

    Firmata.begin(57600);
    while (!Serial) {
      ; // wait for serial port to connect. Needed for ATmega32u4-based boards and Arduino 101
    }

    to:

    Serial1.begin(57600);
    Firmata.begin(Serial1);

    And connect to the TX1 and RX1 pins on your board. You need to use an Arduino board what has these pins. An Uno doesn’t for example but a Leonardo, Due or Mega does. Due and Mega also have TX2 & RX2 which you’d use Serial2 instead of Serial1. TX3 & RX3 use Serial3, etc.

    in reply to: connect two arduinos? #1092

    I’m not sure what you are attempting. SerialFirmata is used to control serial peripheral devices attached to an Arduino board. You would not need to modify that code. If your idea is to create a simple serial control protocol to communicate with another board the servos are attached to and is running the Servo library, then you can use SerialFirmata to accomplish this. See these two examples: https://github.com/soundanalogous/Breakout/tree/master/examples/serial. You can use this to read and write commands over a serial connection to another Arduino.

    in reply to: connect two arduinos? #1090

    I also recommend looking into using Johnny-Five instead of Breakout because Johnny-Five has a nice Servo animation library that is probably exactly what you need. Johnny-Five is also built in NodeJS so the networking capabilities are pretty much unlimited. You may not find Johnny-Five specific networking examples, but you can look up NodeJS networking examples, of which there are thousands.

    in reply to: connect two arduinos? #1088

    Including the library you found is not going to work simply by including it in the sketch. You need to write a wrapper so that Firmata understands how to communicate with that library. This is not so easy. You can find examples in the custom_examples directory: https://github.com/soundanalogous/Breakout/tree/master/custom_examples. Basically look at how the RFID library wrapper works in those examples. You’d have to do something similar to get the Servo library to work.

    Likewise, you can’t pass arbitrary assignments such as “x = 12” through Firmata since Firmata doesn’t know what to do with the value. You need to extend StandardFirmata to understand such things, much like in the custom examples I linked to above.

    in reply to: connect two arduinos? #1085

    See this example: https://github.com/soundanalogous/breakout-experiments/blob/master/multi_client/multi_client.html

    You would do something like this, but one connection would be local and the other would have a remote IP address. You may need to setup port forwarding on the remote computer to get it to work.

    in reply to: Breakout server application won't open #1080

    I’m not having any issues on Win 10 64-bit.

    Make sure you keep the rxtxSerial.dll file in the same folder as Breakout Server64.exe.

    If that is not the problem then try using the Windows Event Viewer application to see if you can see any logs from Breakout Server when you attempt to open the exe file.

    in reply to: Serial won't work #1077

    There are a couple of issues:

    1. The first is that Serial won’t work the way you have illustrated in your diagram. HW_SERIAL1 corresponds to pins TX1 and RX1 on an Arduino Board. This is the Serial1 class in Arduino and not all board have these pins. The regular Serial class (pins marked RX and TX – typically pins 0 and 1) on the board cannot currently be used with the Firmata Serial feature. You’ll need to use a board like an Arduino Leonardo, Mega, Due, Zero, 101 or other board that has RX1 and TX1 pins in order to use Hardware serial. With an Arduino Uno, you have to use SoftwareSerial.

    2. There was an error in the serialWrite example that was not sending ascii characters so if you would have tried to view the output using the Arduino IDE Monitor you would not see anything printed. This is now fixed: https://github.com/soundanalogous/Breakout/commit/8d7bd0ba5cb50210efb1ce3c4e7702bf04f34d03

    in reply to: Serial won't work #1075

    The serialRead example work for me without issue at 9600 baud (didn’t check other baud rates yesterday). I’ll test serialWrite again tonight to be sure, but I’ve never had an issue with it in the past nor with any baud rates under 57600. Higher baud rates (> 57600) do not work with SoftwareSerial.

    Are you setting the correct baud rate for your device and wiring RX on the board to TX on the device and vice versa?

    Also, which Arduino board and particular serial device are you using?

    in reply to: Serial won't work #1073

    Hi Jan,

    Did you upload the new BreakoutFirmata sketch to your Arduino?
    https://github.com/soundanalogous/Breakout/tree/master/firmware/BreakoutFirmata

    You’ll need either BreakoutFirmata.ino or StandardFirmataPlus.ino to get the Serial functionality. BreakoutFirmata.ino includes support for Stepper motors but is otherwise equivalent to StandardFirmataPlus.ino (not to be confused with StandardFirmata.ino which does not support Serial).

    best,

    -jeff

    in reply to: Connect my mobile #1054

    I upgraded to Windows 10 and can still connect to Android and iOS without issue. Make sure breakout server.exe is included in your firewall Inbound Rules. If it is and still doesn’t work I would suspect the issue may be in Android. Version 4.1 may be too old (websockets may not have been supported yet). Android 5.0 should work for sure though unless if you have a non-Nexus device and the manufacturer messed with how sockets work in the OS.

    in reply to: Connect my mobile #1053

    I’m able to connect to Breakout Server running on Window 7 Home edition 64-bit (emulated on a Mac). I can connect to a Nexus 5x (Running Stock Android 6.0.1) and an iPad running iOS 9.1. It works even with the firewall enabled.

    Here is a screenshot showing the location of breakout server in relation to the Breakout directory. Also note the Webserver Root Director under the settings tab in Breakout Server. This should point to the Breakout directory to run the examples.

    windows-7-setup

    Here are my firewall settings:

    firewall-settings

    I also noticed that in Advanced Settings > Inbound Rules, breakout server.exe is listed. Make sure it is listed for you as well. I didn’t do anything manually to get it listed. I assume it gets there by accepting a permission dialog the first time you open the application.

    I’ll try upgrading to Windows 10 later to see if that makes any difference.

Viewing 15 posts - 1 through 15 (of 91 total)