Git Product home page Git Product logo

harduino's People

Contributors

ardumont avatar leventerkok avatar pthariensflame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

harduino's Issues

toEnum{PinMode}: tag (11) is outside of enumeration's range (0,6)

System.Hardware.Arduino.SamplePrograms.Blink> blink
*
* hArduino:ERROR: toEnum{PinMode}: tag (11) is outside of enumeration's range (0,6)
*** Make sure your Arduino is connected to /dev/cu.usbmodemFD131
*** And StandardFirmata is running on it!

I get above failure when i am testing "blink". Firmatatest is running fine. I am a bit newbie and i couldn't debug this. On the other side i didn't change the code. Could there be a chance that new versions of standartfirmata is not compatible ? I used

OS X : 10.11.3
Firmata : 2.5.2
ghc : 7.10.2
Serialport 0.4.7
Arduino Uno

Above configuration was working with Haskino, thats why i suspect with Firmata in which haskino was using a configurable version.

Use fixed version of serialport

Because the serialport library is still alpha, I would suggest you add an explicit version in the cabal dependency list: serialport == 0.4.5

Trouble running sample program

Apologies if this is user error as I've been away from Haskell for quite a while, but I am getting a compile error trying to run the "blink" sample program. Using hArduino 0.9 and GHC 7.6.3, compiling the sample program results in:

$ ghc Blink.hs
[1 of 1] Compiling System.Hardware.Arduino.SamplePrograms.Blink ( Blink.hs, Blink.o )

Blink.hs:21:17: parse error on input `delay'

Any ideas what I'm doing wrong?

Thanks!

Listener thread management in GHCi

If we receive a Ctrl-C call, then we quite the program. Which is fine when we have an executable since it kills the spawned listener thread and everything is cleaned up. However, if we run the Arduino program inside GHCi, then catching the signal returns to the GHCi prompt, and (apparently) doesn't kill the forked listener thread. This causes issues if the same program is run again (which is the typical use case from the GHCi command line), since we know have two listener threads..

It'd be nice to see if there's a way to avoid this, by explicitly killing the listener thread for instance.

pulseIn/pulseOut accuracy

The implementation of pulseIn and pulseOut is inherently inaccurate.

The issue exists for both functions, as the Firmata communication overhead inherently adds inaccuracy to measurements. However, I've found that pulseOut is relatively OK for practical uses. However, pulseIn is unlikely to be useful for any sort of fine measurement (as would be required for distance sensing sensors, for instance), due to the extreme accuracy needed for such an application.

There's a proposal out there to add a pulseIn function to Firmata: rwaldron/johnny-five#18

We should track the status there and start using it once it gets merged to mainline Firmata. (If ever.)

Distinguishing analog/digital pins

Analog and digital pins currently use the same "name space", meaning that the user has to know how many digital pins he has so he can correctly compute the analog pin number. However, hArduino already tracks this information in its capabilities mapping, so it would be nice to use the type-system to allow users "safe" access to these pins without requiring them to know how many digital pins there are.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.