Go Down

Topic: Google Chromebook and Arduino IDE support (Read 40303 times) previous topic - next topic

autarchex

I think there is still interest in this.  I just bought a Samsung Chromebook 2 yesterday and this is the first thing I've tried doing with it.

Although I am also working on getting a more traditional Linux distro installed on it so if it turns out to be impossible to do MCU work on a Chromebook I will still have a sleek and sexy portable development system.

rainyhere

#16
Oct 24, 2014, 09:26 am Last Edit: Oct 24, 2014, 05:31 pm by rainyhere
The main point is to hit the $150-200 special out of the box. Imagine the potential. I hope codebender takes a look at those chrome.serial API's.

This all being said, I am making good progress on bootloader flashing software for Chrome Browser/ChromeOS. STK500 is a terrible, terrible place.... But it'll work out eventually!




rainyhere

#17
Oct 29, 2014, 05:24 am Last Edit: Oct 29, 2014, 05:25 am by rainyhere
I have completed a serial bootloader called AVRChick for Chromebooks and really anything that can run Google Chrome as a browser. This is an "offline" app, which means you can be off the internet and run the app without any trouble.

https://chrome.google.com/webstore/detail/avrchick/kpbgbcocfgjbmnpplcjlcammjdkgogba

It has very basic functionality, but you can load "blink.hex" onto an Arduino connected to USB. Or some other huge hex file. I am also going to add a "download" function so you can pull hex files off of Arduino's easily. I can also add a nice GUI to the various fuses.

While I do not think it is much of a problem, it does no hardware verification. Use at your own risk. Just as a sanity check, I loaded on a jpeg into flash of a 328, and nothing bad happened. It now requires there to be a semi-valid Intel Hex file so it will be difficult to inadvertently load on random data.

Now...the next big problem: writing and compiling sketches.

I see a couple of options:

1) Create some sort of online API which ingests arduino sketches and outputs hex files

2) Using Emscripten, compile the AVR-GCC toolchain into LLVM, then turn it into JavaScript and include it within a google chrome "offline" app. This is remarkably feasible. Static files can be merged into the output Javascript (there's an option for this), and objects, etc. can be stored in local storage. Stdio is one of Emscripten's core functions. I have never actually attempted this, but if jsmess was successful, this should be possible.

3) Forget C++. Get an interpreter boilerplate, and jam in the tokenized user program directly after the interpreter in PROGMEM. Write some code to go find the user program.

rainyhere

Just one final update --

I now have a Chrome OS application that runs a local IDE, sends the sketch off for compiling on a remote server, and then takes the Intel Hex result and programs the Arduino locally. Takes just a few seconds for the round trip.

It does require Internet access for the Chrome App, but it works surprisingly well.  Library support is very possible, but not written yet.

this new project might take a week or two to wrap up.

If you are interested, let me know, and I can set you up with a test account.

myotheralt

Rainyhere I am very interested as my PC is in the middle of dying on me.

rainyhere

Rainyhere I am very interested as my PC is in the middle of dying on me.
It is now available on Chrome Store here:

https://chrome.google.com/webstore/detail/chromeduino/dmkincdpchiadkhhocmbpjljebfifgbl

I also pushed out an update this evening to support local file saving. Still a lot more to add...including error output from the compiler, library support, etc. but it will come over the next couple of weeks.

If there is a library you are interested in using, let me know, and I will make it available for the compiler.

mitchmao

Hi.

I'm interested in the AdaFruit libraries for chromeduino compiler. In particular, I would very much like the NeoPixel and LSM303 libraries. I'm using the AdaFruit FLORA platform.

Thank you very much for this very useful piece of software.

Best regards,

mbs

rainyhere

Hi.

I'm interested in the AdaFruit libraries for chromeduino compiler. In particular, I would very much like the NeoPixel and LSM303 libraries. I'm using the AdaFruit FLORA platform.

Thank you very much for this very useful piece of software.

Best regards,

mbs
Okay, I will see what I can do this week.

carlosserious

This is fantastic! I can't tell you how happy I am that you decided to make this. I absolutely love my Samsung Chromebook 2 and use it for pretty much everything these days and this really does make it complete for me. Haha.

I look forward to all your future updates and hope that you'll continue with the project well into the future.

Thanks again!

rainyhere

This is fantastic! I can't tell you how happy I am that you decided to make this. I absolutely love my Samsung Chromebook 2 and use it for pretty much everything these days and this really does make it complete for me. Haha.

I look forward to all your future updates and hope that you'll continue with the project well into the future.

Thanks again!
Okay, sorry for the delay. I added those libraries you asked for. You should be able to include.

If you have any issues, let me know. You can also contact me direct: spaceneedle at gmail dot com.

I hope to keep supporting this software into the future. I am a chrome OS user myself and I am getting very close to releasing the next update I am sure everyone is wanting: multi tab support and library support.

pholt_pharmd

This one still sounds promising, if they could ever get Chromebook support working. There are other apps out there that could upload the code to the Arduino, I just wanted it to let me write and compile the code and I'd find a way to get it the Arduino, but still a no-go...  2 years and the popularity of this platform (Chromebooks) and still no support leaves me to think the developers at codebender.cc are not really in touch with the potential users out there.

Try codebender.cc:

"online development & collaboration platform for Arduino users, makers and engineers"

"Code: Awesome editor, fast cloud-based compiler, helpful error reporting. Code faster and easier
"Deploy: Connect your Arduino via USB, or program your Arduino Ethernet remotely over the network.
"Share: Share your work, search for existing projects and clone them, or collaborate with others.

I have not tried it myself but it's probably your best bet if you want to do Arduino development with only a  smartphone, tablet, or chromebook.

pholt_pharmd

Just one final update --

I now have a Chrome OS application that runs a local IDE, sends the sketch off for compiling on a remote server, and then takes the Intel Hex result and programs the Arduino locally. Takes just a few seconds for the round trip.

It does require Internet access for the Chrome App, but it works surprisingly well.  Library support is very possible, but not written yet.

this new project might take a week or two to wrap up.

If you are interested, let me know, and I can set you up with a test account.
I've tried this and I'm very excited about it but I am not able to get it compiled and onto the Arduino. I am using the Arduino Micro and the Samsung Chromebook.

Poetry_Robot

I have a chromebook, you have to download some apps form the appstore, but it seems to work for me.

DanSpyer

Has there been any progress with this development? It's one thing I'm really looking forward to a great product with this!

SockeT

About to use Arduino on a Chromebook, you can do it... but not directly. You need to install the Crouton script.

http://www.linux.com/learn/tutorials/795730-how-to-easily-install-ubuntu-on-chromebook-with-crouton

To be honest I think you'll probably need to perform your Chromebook adding more HDD space.

https://es.ifixit.com/Guide/Acer+Chromebook+C710+Hard+Drive+Replacement/18706

I hope those links shown above help you to reach your goal. Them helped me...

Go Up