Another possible approach could be use clojurescript to a nodejs target.
>From some cursory googling, there do seem to be node modules like
https://github.com/kelly/node-i2c which offer I2C support.
And I believe you might also get a better startup time.


On Wed, Sep 4, 2013 at 8:35 PM, Jeremy Wright <wright...@gmail.com> wrote:

> I decided to start with the BeagleBone Black as the embedded controller,
> partly because of the low cost ($45) and partly because I have one on hand.
> So, the first thing I need to do is make sure that I can get the I2C
> interface to work from Clojure.
>
> Gregg Harrington's post might work as a starting point:
> http://www.greggharrington.com/articles/beaglebone-i2c-java-adapter
>
> I'm assuming that I can use Java interop in Clojure to do the same thing.
> I have a Melexis MLX90614 I2C temperature sensor laying around already, so
> I'll try to get data from it with the BeagleBone/Linux/Java/Clojure stack
> first. If that works I can try something more complex.
>
> Here's a good (and quick) explanation of I2C (and SPI) for anyone not
> familiar with it: http://quick2wire.com/articles/i2c-and-spi/
>
> On Monday, September 2, 2013 2:16:43 PM UTC-4, Jeremy Wright wrote:
>>
>> Thanks for the great information nakkaya. You've worked on some very cool
>> things.
>>
>> About the Java friendly micros - I mentioned Systronix, but it looks like
>> that community and product line may be dormant or even abandoned. There
>> haven't been any posts to their Google Groups or many of their forums for
>> at least a year.
>>
>> What about using the built-in I2C interface on the BeagleBone/BeagleBoard
>> to handle the I/O? For example, something like this 
>> product<http://www.robotshop.com/seeedstudio-grove-i2c-motor-driver.html?utm_source=google&utm_medium=base&utm_campaign=jos>from
>>  Robot Shop. As you mentioned, you're still offloading the real-time
>> work onto another microcontroller (ATmega8L), but by using I2C bus devices
>> you can expand your control system as needed without an Arduino. Would
>> there be any disadvantages to doing this?
>>
>> On Saturday, August 31, 2013 11:13:59 PM UTC-4, Jeremy Wright wrote:
>>>
>>> I recently watched Carin Meier's OSCON talk The Joy of Flying Robots
>>> with Clojure <http://www.youtube.com/watch?v=Ty9QDqV-_Ak> and it made
>>> me wonder about Clojure on embedded systems. A quick search on this list
>>> didn't turn up much so I thought I'd ask. How much work has been done with
>>> Clojure on either Java friendly microcontroller systems (i.e. 
>>> Systronix<http://www.systronix.com/>),
>>> or on something like a Beaglebone or Beagleboard? I'm very new to Clojure,
>>> so I don't yet understand the challenges that Clojure would face trying to
>>> run on a system that may not support all the JVM's features.
>>>
>>> Any thoughts on this? Any links you can give me on what's been/being
>>> done?
>>>
>>> Thanks.
>>>
>>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to