Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    ajfisher
    @ajfisher
    @DamonOehlman ^^
    Oh wow - that's a good deal given current AUD:USD rates
    ajfisher
    @ajfisher
    @AnnaGerber so I'm just updating the nodebots_mbots repo at the moment updating deps, firmata etc. Are you able to do some testing at some point so there's some tests beyond just me?
    Also want to test that install via interchange is working properly too
    ajfisher
    @ajfisher
    @AnnaGerber updates all up on https://github.com/Makeblock-official/mbot_nodebots can be installed via interchange as well per README. One thing to note is I still haven't been able to track down the bug with the button as it's on A7 and for some reason Firmata doesn't like it ....
    But other than that everything else works - noting of course the components being attached to the appropriate ports for the examples. But that should give you something to point people at and obviously any mods / enhancements / fixes etc will be gratefully appreicated!
    Anna Gerber
    @AnnaGerber
    Thanks, just back from camping but I'll give it a whirl over the next few days
    ajfisher
    @ajfisher
    Cool - ahh camping, I remember when the weather was nice enough to be outside for an extended period of time without being soaking, cold or both and we could see things like the sun... good times...
    Brendan Halliday
    @nog3
    jfc, serialport still needs pre-gym
    Pre-gyp
    Which means visualstudio on windows
    Wheeeeeoooooo
    As per usual, supporting windows users at this event will be tooth pullingly fun.
    ajfisher
    @ajfisher
    @nog3 Can you update this if needed please as I'm not across the windows stuff well enough (and don't have something to test with) https://github.com/nodebotsau/nbdau/blob/master/setup.md
    Brendan Halliday
    @nog3
    Sure, I'm in the process of installing visual studio community 2015
    As per anything microsoft 2015 wise it's taking 10 years to install things I probably don't need.
    Brendan Halliday
    @nog3
    Hrm, interchange is giving timeout issues.
    Brendan Halliday
    @nog3
    But serialport might not have built correctly, as I'm getting vs2015 errors like
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error
    MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK vers
    ion in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\nog3\A
    ppData\Roaming\npm\node_modules\nodebots-interchange\node_modules\avrgirl-arduino\node_modules\avrga-tester\node_module
    s\express-ws\node_modules\ws\build\bufferutil.vcxproj]
    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error
    MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK vers
    ion in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\nog3\A
    ppData\Roaming\npm\node_modules\nodebots-interchange\node_modules\avrgirl-arduino\node_modules\avrga-tester\node_module
    s\express-ws\node_modules\ws\build\validation.vcxproj]
    So, installing WDK10.somethingsomethingsomething
    Looks like 3gb of downloads so far
    ajfisher
    @ajfisher
    Hmm that's weird as interchange is just pointing at GitHub...
    Brendan Halliday
    @nog3
    Ok, so I might not have needed VS, as serialport was downloaded as its own binary
    But the issue was I had the bluetooth module in while flashing
    Anna Gerber
    @AnnaGerber
    So I tested the mbots connected by USB on Mac and all examples work fine (I changed the button example to be a Sensor on pin A7 to get it working). But I'm still having a few problems with bluetooth. I can run the interchange command ("interchange install git+https://github.com/Makeblock-official/mbot_nodebots -a uno --firmata=bluetooth") to flash the bluetooth version of the firmware and it says flash is complete with no errors, but then when I plug in the bluetooth module and try to run the example programs on /dev/tty.Makebl.Makeblock-ELETSPP , it times out and give a "Please check that you've properly flashed the board with the correct firmware." message. Curiously I can unplug the bluetooth module, plug the USB cable back in and run the examples with no problem on the USB device /dev/cu.wchusbserialfd120 with the bot still running what was meant to be the bluetooth firmware, which makes me wonder if the bluetooth firmware was actually installed. Have you had these going with the bluetooth firmware recently @ajfisher?
    Brendan Halliday
    @nog3
    I was just about to test bluetooth also
    ajfisher
    @ajfisher
    @nog3 ahh the old blocked serial line moment... the number of times I have done that is astonishing
    Anna Gerber
    @AnnaGerber
    I just used Arduino IDE to upload an older version of the mbot bluetooth firmata that I had hanging around (and manually changing the baud rate to 115200) and the bluetooth examples now work. so I suspect when I try to upload the firmware using interchange it's installing the regular USB version and not the bluetooth version
    ajfisher
    @ajfisher
    @AnnaGerber that's odd. I did test this the other week. Let me just check the grunt file. It's supposed to make that change
    Okay I've found the bug
    So it looks like in latest firmata Jeff left some test code dangling around
    ajfisher
    @ajfisher
      // to use a port other than Serial, such as Serial1 on an Arduino Leonardo or Mega,
      // Call begin(baud) on the alternate serial port and pass it to Firmata to begin like this:
      // Serial1.begin(115200); <================================ This is being changed
      // Firmata.begin(Serial1);
      // However do not do this if you are using SERIAL_MESSAGE
    
      Firmata.begin(57600); <================================== This one isn't
      while (!Serial) {
        ; // wait for serial port to connect. Needed for ATmega32u4-based boards and Arduino 101
      }
    Anna Gerber
    @AnnaGerber
    @ajfisher ah, glad it was something simple
    ajfisher
    @ajfisher
    Yep - so I can't build that on my work computer as don't have arduino but I've pushed the mod to GH so I'll build it and release a new hex when I get home
    If you have a chance to just try that BT firmware though then that would at least test it
    Anna Gerber
    @AnnaGerber
    ok, should be able to take a look this afternoon
    ajfisher
    @ajfisher
    awesome - thank you
    Anna Gerber
    @AnnaGerber
    @ajfisher just tested the new BT firmware, all good. thanks
    ajfisher
    @ajfisher
    Awesome - will do a build of it tonight once I get home and publish the hex into GH as well and then interchange should just work
    Anna Gerber
    @AnnaGerber
    I did a build to test it out with interhchange too so I've sent a PR with the new hex
    ajfisher
    @ajfisher
    Awesome - thank you
    Anna Gerber
    @AnnaGerber
    Also I took a look into the button - I think it doesn't work because the Button class uses digitalRead by default. There's a Tinkerkit button controller that uses analogRead instead that almost works, but unfortunately it's the inverse of the mbot button so you get pressed when it's released and vice versa.
    so it's a bit messy but at least it works
    ajfisher
    @ajfisher
    Oh right - does digitalRead not work on that button because it's out of range?
    Anna Gerber
    @AnnaGerber
    I'm assuming so, not really sure why but the analog controller definitely does work
    ajfisher
    @ajfisher
    That's so odd. maybe I missed something in Boards.h - I had to update it to set it so it had 8 Analog pins not six
    ajfisher
    @ajfisher
    @AnnaGerber pulled those changes through
    havocy28
    @havocy28
    Anyone at nodebot Sydney able to help me get in?
    ajfisher
    @ajfisher
    @havocy28 you get sorted?
    havocy28
    @havocy28
    @ajfisher I did, thanks for the follow up
    Paul
    @whatevergeek
    Hi @AnnaGerber , do you have any other recommended IoT shops apart from little bird and tronixlabs ? most of the things i like (pimoroni stuff), tronixlabs has... but they're on holiday from next week :-(...