Little Wire - "Minimal AVR programmer and more"

Hardware incubation. See also our in development projects wiki.

Re: Little Wire - "Minimal AVR programmer and more"

Postby Squonk » Tue Aug 07, 2012 12:56 am

Thank you!

Sorry, I can't help you with he pic24f, I don't use them.

So far, I tested my perf-board LittleWire for AVR programming, I2C DS1307 and USB-CDC.

BTW, do you know Bitlash? It is an open source interpreted language for the Arduino, but it can also be compiled (with restricted features) for the ATtiny85. Maybe it is something to explore for the LittleWire?
Squonk
Jr. Member
Jr. Member
 
Posts: 94
Joined: Sun Apr 10, 2011 3:23 pm

Re: Little Wire - "Minimal AVR programmer and more"

Postby kehribar » Tue Aug 07, 2012 1:02 am

Hi,

You tested the DS1307 with the V1.1 firmware i guess? Thanks for letting me know.

I haven't heard about it since now. It says that "The Bitlash embedded interpreter that runs in about 14k of memory on an Atmel AVR processor" but you also stated the "(with restricted features)". I don't know maybe i'll look more detail in future ...

What is on my mind is actually writing an interactive console application at the PC side to ease up the protocol analysis and pin manipulation.

ihsan.
User avatar
kehribar
Jr. Member
Jr. Member
 
Posts: 67
Joined: Thu Dec 08, 2011 9:39 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby Squonk » Tue Aug 07, 2012 2:10 am

Ok, I will let you know, I just did some simple tests up to now.

Regarding Bitlash, it may be a little too big to fit in the LittleWire (considering the USB stack), but if you look at the code, there are some #defines for the ATTINY85.

Maybe the idea of an embedded interpreter is not applicable to it, but the language syntax is nice and easy. It could be ported onto the host side, the ATtiny only executing pre-parsed intermediate bytecodes...
Squonk
Jr. Member
Jr. Member
 
Posts: 94
Joined: Sun Apr 10, 2011 3:23 pm

Re: Little Wire - "Minimal AVR programmer and more"

Postby Squonk » Mon Aug 13, 2012 12:35 pm

Hi Ihsan,

You should have started a Kickstarter with the LittleWire:
http://www.kickstarter.com/projects/dig ... -dev-board

Just put the magic woed "Arduino"!!!
Squonk
Jr. Member
Jr. Member
 
Posts: 94
Joined: Sun Apr 10, 2011 3:23 pm

Re: Little Wire - "Minimal AVR programmer and more"

Postby kehribar » Mon Aug 13, 2012 7:24 pm

Squonk wrote:Hi Ihsan,

You should have started a Kickstarter with the LittleWire:
http://www.kickstarter.com/projects/dig ... -dev-board

Just put the magic woed "Arduino"!!!


Hi,

I saw that project today on Kickstarter and feel weird as well. : )

I mean, apple and oranges OK; but one feel a little sad. Even though this project and mine is conceptually different, this one offers an "Arduino compatible dev board with supplementary code" on the other hand the Little Wire offers a complete hardware / software solution by giving emphasis on computer interface by making the hardware as a transparent bridge, one can thought that "Do i waste my time with contract manufacturing and making my project complicated and hard to explain? "

I mean, as an example, Hackaday posted my "Printf style debugging over AVR-ISP pins!" post but they couldn't get the essence of this project and couldn't explain properly on their post. I'm developing some neat, application specific and somewhat novel usage cases / projects, but is there really a point to develop such projects if i can't deliver what they actually do? I hope someday one will benefit from those projects :)

Also the blink(1) project collected 130k for an Attiny85 + RGB led :) It is cool and somewhat sad as well. Yes i'm overly simplifying his project by saying that but one should get the idea :) By the way i expect Digispark to reach 100k at the end of the month if he goes with this speed.

For the compatibility part, as far as i tell it isn't %100 pin compatible with the Little Wire but he might try to port it.

I saw the discussion on the Hackaday but i haven't enough energy to write a comprehensive comparison post there. Also i don't know if it is necessary or not.

On the other hand, as we talked about here, edge connector thing is not robust enough to put in a commercial product unless you take some strong precautions. Also V-USB based serial interface will consume much of the CPU time and the code space and also it has to be polled with strict timing requirements. He might implement timer based solution for this but i don't know ... There is too much pain to create something "just works out of the box" for his case.

I wish him the best luck :)

ihsan.
User avatar
kehribar
Jr. Member
Jr. Member
 
Posts: 67
Joined: Thu Dec 08, 2011 9:39 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby hahihula » Mon Sep 03, 2012 9:29 am

Hi,
I just have finished my one. ;-) Maybe later I can post pictures of it. But I must say it was a pain to get it working. First what I have to mention is that for me it was not working under 64bit linux system (tried opensuse, debian and ubuntu ) I compiled the examples run them as root but even then i get "Little Wire could not be found!" message.
After that I tried 32bit Linux and Windows under Oracle VirtualBox enviroment. Also getting only "Little Wire could not be found!" (but i've seen it with lsusb ). This is strange because I normally use my usbtinny programmer under virtualbox without any problem (and without need for root privileges).
Finally I boot from ubuntu live-cd 32bit and get it working. Examples working as expected (I just tested GPIO and ADC, but I will test the rest).

I am running the 1.0 version, and was trying only the C examples. Is it better in v1.1 ? Or will it be better? Or I am just doing it wrong?
hahihula
Newbie
Newbie
 
Posts: 3
Joined: Sun Aug 19, 2012 11:23 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby Adam » Wed Sep 19, 2012 2:25 am

Hi Ihsan and others,

I've just finished porting the littleWire library to Python - I was surprised that no-one had already done it... (maybe they have and I just didn't find it?)

I haven't tested it 100% yet, but I thought it would be nice to get it out there into the wild as early as possible. I'd like to contribute it back to the main project so please feel free to take it and package it with the project. Also, please email any bug reports to apjohnson@gmail.com and I'll do my best to fix them ASAP

https://sites.google.com/site/something ... on-library

Regards
AJ
Adam
Newbie
Newbie
 
Posts: 4
Joined: Mon May 14, 2012 4:53 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby Squonk » Wed Sep 19, 2012 2:47 am

Thank you Adam!

It is a very good thing indeed!
Squonk
Jr. Member
Jr. Member
 
Posts: 94
Joined: Sun Apr 10, 2011 3:23 pm

Re: Little Wire - "Minimal AVR programmer and more"

Postby kehribar » Wed Sep 19, 2012 2:49 am

@Adam

Thanks for the library!

I suggest you to open up a GitHub repo and continue your work from there. It will be much easier to work collaboratively and track issues.

On the other hand, it seems that you are using V1.0 C library but this version ,especially the firmware itself, has lots of bugs. You may want to take the V1.1 library as a base when creating your library. https://github.com/littlewire/Little-Wi ... nterface/C

You can look at this newly released Ruby library for the littlewire: https://github.com/littlewire/littlewire.rb Here my blog post about using this library on Windows: http://blog.kehribar.me/?p=226

@hahihula

V1.1 is defiantly better than previous version. Especially the SPI and I2C interfaces were a bit buggy. Also very nice features have come with the new release. You can find the changelog here: http://blog.kehribar.me/?p=139

ihsan.
User avatar
kehribar
Jr. Member
Jr. Member
 
Posts: 67
Joined: Thu Dec 08, 2011 9:39 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby Adam » Wed Sep 19, 2012 5:23 am

Hi Ihsan,

As requested, I have hosted this at github. You are right, it probably is the easiest way.
http://github.com/adajoh99/VeryLittleWire

I have made it more clear that the library is based on the v1.0 code. I will have a look into the v1.1 code as well when time permits. At the moment I am trying to get a prototype up and running to log some data from an I2C sensor to support the mechanical boys at work. This seemed like the ideal way to do it.

Thank you for sharing this project with us, it has certainly proven to be a useful tool already!

AJ
Adam
Newbie
Newbie
 
Posts: 4
Joined: Mon May 14, 2012 4:53 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby kehribar » Wed Sep 19, 2012 5:32 am

Hi,

Thanks for the kind approach! :) I'm going to fork this repo to the main organization account soon.

And by the way, you can move the Wiki page to the main Readme.md. Github Wikis are generally not very useful and very hidden under the menus. Using the Readme.md at the main directory is the best way to write a introductory message.

Also,

If you aim to use I2C, i suggest you to use V1.1 , you might have hard time to implement a robust system if you use V1.0 firmware.

Best,
ihsan.
Last edited by kehribar on Wed Sep 19, 2012 7:24 am, edited 1 time in total.
User avatar
kehribar
Jr. Member
Jr. Member
 
Posts: 67
Joined: Thu Dec 08, 2011 9:39 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby erdabyz » Wed Sep 19, 2012 7:13 am

Any update on the 64 bit issue? I still can't use littlewire in my main computer because of the 64 bit issue.

My littlewires have already programmed quite a bunch of atmegas and they keep running fine!
erdabyz
Full Member
Full Member
 
Posts: 172
Joined: Wed May 25, 2011 8:13 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby kehribar » Wed Sep 19, 2012 7:24 am

Hi,

I'm very sorry that I haven't returned to that problem yet! There is a solution and i will post it soon :)

Thanks for keeping me informed about your test results! :)

Have you find chance/need to test the library features of the Little Wire?

ihsan.
User avatar
kehribar
Jr. Member
Jr. Member
 
Posts: 67
Joined: Thu Dec 08, 2011 9:39 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby erdabyz » Wed Sep 19, 2012 9:21 am

kehribar wrote:Hi,

I'm very sorry that I haven't returned to that problem yet! There is a solution and i will post it soon :)

Thanks for keeping me informed about your test results! :)

Have you find chance/need to test the library features of the Little Wire?

ihsan.


Not yet, but I'll probably use them for automated testing and diagnostics of failures in my arduino robots. I hope not having to use them but I know there will be failures.
erdabyz
Full Member
Full Member
 
Posts: 172
Joined: Wed May 25, 2011 8:13 am

Re: Little Wire - "Minimal AVR programmer and more"

Postby kehribar » Wed Sep 19, 2012 1:43 pm

Hi,

Can anyone test whether this driver works for 64bit win machines or not? : )

https://github.com/kehribar/Little-Wire ... p?raw=true

Best,
ihsan.
User avatar
kehribar
Jr. Member
Jr. Member
 
Posts: 67
Joined: Thu Dec 08, 2011 9:39 am

PreviousNext

Return to Project development, ideas, and suggestions