Arduino Forum

General Category => General Discussion => Topic started by: magicmike on May 19, 2011, 02:40 pm

Title: Google Chromebook and Arduino IDE support
Post by: magicmike on May 19, 2011, 02:40 pm
I'm thinking about getting a Chromebook next month. Does anyone know if it is possible to program an Arduino using a Chromebook?

By that I mean run an IDE, program to a serial port, listen on a serial port, etc. Just like with a regular system.

- Is it even possible to run the IDE in the new Chromebooks, since they are web based?
- They have two USB ports, so physically connecting to the Arduino should be fine.

Any light you can shed on this would be appreciated. I'm thinking that given their endoresement of Arduino at IO2011, this must be possible, but have never touched a Chromebook.

Thanks
Title: Re: Google Chromebook and Arduino IDE support
Post by: johnwasser on May 19, 2011, 03:20 pm
I would guess that it may be possible to compile the IDE as an HTML5 Java applet but I don't think avrdude will be available in HTML5 form any time soon.  It may take quite a while before the Chromebook can do anything you can't already do through your web browser.

Perhaps you could set up a small Windows or Mac computer and use GoToMyPC or GoToMyMac to control it remotely from the Chromebook.
Title: Re: Google Chromebook and Arduino IDE support
Post by: cmiyc on May 20, 2011, 12:02 am
Here is the FAQ for Chromebook:
http://www.google.com/support/chromeos/bin/answer.py?answer=183061

You probably want to pay attention to the question "I use a specific piece of traditional software. Will it run on a Chromebook?" 

Keep in mind the Arduino IDE is made up of several tools which all would need to be supported.  Plus, device drivers for the underlying OS would need to be supported as well.  (e.g. the Uno emulates a USB Modem, it is unlikely the Chromebook's OS would come with a device driver for a USB Modem.)
Title: Re: Google Chromebook and Arduino IDE support
Post by: magicmike on May 20, 2011, 03:50 am
Thanks. So that's a "No".

New question: Is it possible to have a web app write to a USB or serial port easily? It must be ..... but how?

So if I write a web version of the Arduino IDE (which for the UI part looks like a lot of work, but not particularly hard), how would this talk to the USB port on the Chromebook?

More info: I've read this is possible in Flash, but I don't know flash. Is it possible in Silverlight || C# || Python || Javascript ?

Cheers

PS: Maybe I should retitle this question "web version of Arduino IDE" ?

Title: Re: Google Chromebook and Arduino IDE support
Post by: keeper63 on May 20, 2011, 07:58 am

Thanks. So that's a "No".

New question: Is it possible to have a web app write to a USB or serial port easily? It must be ..... but how?

So if I write a web version of the Arduino IDE (which for the UI part looks like a lot of work, but not particularly hard), how would this talk to the USB port on the Chromebook?

More info: I've read this is possible in Flash, but I don't know flash. Is it possible in Silverlight || C# || Python || Javascript ?

Cheers

PS: Maybe I should retitle this question "web version of Arduino IDE" ?




I wouldn't be so quick to say "No" - Chrome OS is the "officially supported" version of Chromium OS, which is the open-source, Linux-based version:

http://en.wikipedia.org/wiki/Google_Chrome_OS
http://en.wikipedia.org/wiki/Chromium_OS
http://www.chromium.org/chromium-os

I have no doubt that once the Chromebook devices come out for general purpose, that you will see people hacking them, getting them to run anything and everything. While I doubt that the general community for Chrome will create a custom form of avr gcc (and all the other parts) for it, I'm sure there will be at least one person here that will do it.

Give it time. I wouldn't even bother with buying one at first anyhow, unless you are an "early adopter" kind of person, or you need it for a specific reason or such. Personally, I wonder why they only went with 3G (when everything else is moving to 4G) - if I ever decide to get one (heck, I don't even use my eeePC), it wouldn't be until it support both 802.11n/g -and- 4G at once (then again, I can't afford another data plan - my G1 sucks up enough of my money as it is).

:)
Title: Re: Google Chromebook and Arduino IDE support
Post by: ptolematic on Dec 18, 2012, 07:24 am
Hey, I was thinking about the Chromebook too and this has been a question for me, whetherr it will work or not. I know that you can partition Linux to a Chromebook. There appatently are a few flaws with it right now, the sound doesnt work and a few things like that. So my theory is that I can use the Arduino with Linux on the Chromebook. Just a theory because I havent tested it yet.
Title: Re: Google Chromebook and Arduino IDE support
Post by: rsk22 on Jul 11, 2013, 01:01 am
I just recently bought a Samsung Google Chromebook.  Before I bought the laptop, I knew that Chrome OS could not support Arduino code development.  If I knew more about advanced computer programming, I would consider making the app.  However, I hope the large and ambitious Arduino community will make an app soon.  As some of the other users have mentioned, one could use a remote desktop application to run the Arduinio IDE from a Chromebook, but I do not see that being very useful. 
Title: Re: Google Chromebook and Arduino IDE support
Post by: johnwasser on Jul 11, 2013, 09:48 pm
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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: rsk22 on Jul 14, 2013, 05:14 pm

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.


Unfortunately, codebender.cc is not supported by the Samsung Chromebook. 
Title: Re: Google Chromebook and Arduino IDE support
Post by: rsk22 on Jul 17, 2013, 04:28 am
So, I think I might have found a way to install the Arduino IDE on the Google Samsung Chromebook.  Google: "Microcontroller Development on Samsung (ARM) Chromebook".  The first link should be the website you are looking for.  I have not tried this yet, however I believe it should work.  Basically, the author suggests installing a Linux OS onto the Chromebook.  Once the Linux OS is installed, the user then can install the Arduino IDE. Thoughts?  If anyone does try this, the offer recommends backing up the Chrome OS on a thumb drive or flash drive with at least 4 GB. 
Title: Re: Google Chromebook and Arduino IDE support
Post by: zachgooch on Sep 20, 2013, 05:44 pm
I just ordered a kit yesterday to start learning about arduino programming and had the same question when I realized chrome was its own operating system last night.  Hope the linux fix works.
Title: Re: Google Chromebook and Arduino IDE support
Post by: jbzurn on Nov 03, 2013, 02:25 am
TL/DR:  You can't use codebender to flash USB Arduinos from a Chromebook. However you may be able to flash an ethernet Arduino.

"chromebook doesn't support NPapi plugins(aka you can't use the USB flashing browser plugin). On the other hand you can write and compile code as usual and flashing through the network an Arduino Ethernet with Ariadne is also supported."

http://codebender.uservoice.com/forums/165703-general/suggestions/3386288-make-it-work-on-chromebook

The previous answer does give a way to make your -hardware- flash the USB Arduino, but you have to install Linux on your hardware.
Title: Re: Google Chromebook and Arduino IDE support
Post by: darcoza on Jan 21, 2014, 11:06 pm
I know this thread is a little old but just in case others are looking for this answer I thought I'd comment. I do all my arduino coding on my chromebook and can even upload sketches. To do this I use a script called crouton to install linux alongside ChomeOS so anytime I need to do something ChromeOS can't do I switch over with a short keystroke and open that application. It's very smooth and so far has been working great. Getting the IDE running was a bit tricky however so I made some instructions on what I did. You can see the full instructions on how to install crouton and then the IDE and then a few extra libraries and things you need to upload code in my blog post here:
Crouton:
http://ampere-sand.blogspot.com/2014/01/chromebook-programming.html
Arduino IDE
http://ampere-sand.blogspot.com/2014/01/installing-arduino-ide-on-chromebook.html
Hope this helps people get started on their chromebooks. I love mine!
Title: Re: Google Chromebook and Arduino IDE support
Post by: keeper63 on Jan 23, 2014, 06:25 am

I know this thread is a little old but just in case others are looking for this answer I thought I'd comment. I do all my arduino coding on my chromebook and can even upload sketches. To do this I use a script called crouton to install linux alongside ChomeOS so anytime I need to do something ChromeOS can't do I switch over with a short keystroke and open that application. It's very smooth and so far has been working great.


A friend of mine set this up with his chromebook; I've seen the crouton thing work well - he said he got the Arduino IDE set up and working on it as well, and loves it for developing Arduino projects! :)
Title: Re: Google Chromebook and Arduino IDE support
Post by: rainyhere on Oct 20, 2014, 09:19 pm
Is anyone still interested in this? I am considering writing an AVRDude-like program in pure HTML5/Javascript for starters so a Chromebook can load on hex files to an Arduino. Although this is not the complete package, it's a big hurdle apparently.

I have written ChromeOS USB serial applications before (actually, it works in any chrome browser incidentally). I assume that the Atmel App Note AVR068 "STK500 Communication Protocol" is what the Arduino serial port loader uses? Is there any other documentation out there?

While I have done extensive development on the Arduino platform from an end user and library perspective, I have not dove this deep into the bootloader.
Title: Re: Google Chromebook and Arduino IDE support
Post by: autarchex on Oct 22, 2014, 11:06 pm
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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: rainyhere on Oct 24, 2014, 09:26 am
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!



Title: Re: Google Chromebook and Arduino IDE support
Post by: rainyhere on Oct 29, 2014, 05:24 am
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 (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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: rainyhere on Oct 29, 2014, 09:10 am
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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: myotheralt on Nov 02, 2014, 06:11 pm
Rainyhere I am very interested as my PC is in the middle of dying on me.
Title: Re: Google Chromebook and Arduino IDE support
Post by: rainyhere on Nov 03, 2014, 08:55 am
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 (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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: mitchmao on Nov 11, 2014, 02:44 am
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
Title: Re: Google Chromebook and Arduino IDE support
Post by: rainyhere on Nov 17, 2014, 08:36 am
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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: carlosserious on Nov 19, 2014, 04:38 pm
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!
Title: Re: Google Chromebook and Arduino IDE support
Post by: rainyhere on Nov 24, 2014, 09:11 pm
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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: pholt_pharmd on Dec 08, 2014, 09:54 pm
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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: pholt_pharmd on Dec 08, 2014, 09:58 pm
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.
Title: Re: Google Chromebook and Arduino IDE support
Post by: Poetry_Robot on Dec 28, 2014, 06:24 pm
I have a chromebook, you have to download some apps form the appstore, but it seems to work for me.
Title: Re: Google Chromebook and Arduino IDE support
Post by: DanSpyer on Jan 09, 2015, 10:19 pm
Has there been any progress with this development? It's one thing I'm really looking forward to a great product with this!
Title: Re: Google Chromebook and Arduino IDE support
Post by: SockeT on Jan 14, 2015, 08:00 pm
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...
Title: Re: Google Chromebook and Arduino IDE support
Post by: DiyDan on Jan 16, 2015, 03:03 pm
Lol... I was Glad I found the ChromeDuino,, my son got the samsung chrome from santa.. So I was Glad to see he could use it for our arduino projects...  kinda odd I just joined this forum and see this post..lol .. Thank you Much for who ever created it... a 9yr old and me is Very Much appreciated !!!
Title: Re: Google Chromebook and Arduino IDE support
Post by: Maria-T on Jan 19, 2015, 07:30 am
I now have a Chrome OS funda galaxy A7 (http://www.fundagalaxys5.com/category-funda-samsung-galaxy-a7-185.html) application that runs a local IDE, sends the sketch off funda galaxy note 4 (http://www.fundagalaxys5.com/category-funda-samsung-galaxy-note-4-162.html) for compiling on a remote server
Title: Re: Google Chromebook and Arduino IDE support
Post by: DanSpyer on Jan 19, 2015, 11:20 am
do you have a link?
Title: Re: Google Chromebook and Arduino IDE support
Post by: DanSpyer on Jan 19, 2015, 11:22 am
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.

Hi is there any update on the next release of this software?
Title: Re: Google Chromebook and Arduino IDE support
Post by: DanSpyer on Apr 02, 2015, 10:19 am
has this project just been left alone?
Title: Re: Google Chromebook and Arduino IDE support
Post by: bri_huang on Apr 15, 2015, 04:56 pm
codebender.cc (http://codebender.cc) just released their chromebook plug-in!!! If you're using a chromebook, make sure you update your version of Chromium -- it has to be at least version 42 to work. But, it's a very, very slick implementation.

Title: Re: Google Chromebook and Arduino IDE support
Post by: captainju on Nov 08, 2016, 07:41 am
codebender.cc (http://codebender.cc) just released their chromebook plug-in!!! If you're using a chromebook, make sure you update your version of Chromium -- it has to be at least version 42 to work. But, it's a very, very slick implementation.


codebender.cc (http://codebender.cc) just *UNreleased* their chromebook plug-in!!! If you're using a chromebook, you're screwed up...  :smiley-confuse:
Title: Re: Google Chromebook and Arduino IDE support
Post by: interestedtom on Nov 23, 2016, 11:10 am
Chromebooks run linux, in developer mode you even have access to bash. They will easily run any version of gcc compiled for them. Absolutely no need to port gcc to java script (why would you ever waste your time porting the biggest compiler collection to java script of all languages), there is already a google fork of gcc for both chromium and chromium os as well as for NaCl (Native Client) and PNaCl (Portable Native Client). avrdude should also work. The work required is not in making an entirely seperate IDE and programmer but in getting the underlying java libraries to work on Chrome/Chromium OS's Aura window system.

Why this programmer thinks you need to upload your sketches to his server to compile them I have no idea!
Title: Re: Google Chromebook and Arduino IDE support
Post by: BikerMark on May 21, 2019, 07:22 am
For anyone searching this topic as from 2019:

Arduino has an online editor which works great to create, compile and upload code with my ChromeBook to my Uno and Nano. For the Nano I need to select 'Old Bootloader' to make it a go.
It just needs a plug-in for Chrome, so basicly this will be platform-independent. See: https://create.arduino.cc/editor/ (https://create.arduino.cc/editor/)