weighing scale testing based on IOIO.

89 views
Skip to first unread message

Juan Carlos Contador

unread,
Mar 4, 2016, 10:55:53 AM3/4/16
to ioio-users
hi, I mean that the IOIO board is the best way to make new accessories for android.

I finally managed to connect a weight sensor ( hx711 ) with the IOIO , using a custom firmware , it reads the sensor only when a device is connected to this.

On the Java side , I made an application using IOIOLib and WebView . This app exposes JavaScript interfaces, which are used by small mini -apps that emulate different weight indicators used more commonly. These mini -apps can be created on a website and be available immediately for testing .




Ytai Ben-Tsvi

unread,
Mar 7, 2016, 11:36:08 AM3/7/16
to ioio-...@googlegroups.com
That's awesome! Thanks for sharing. Nice job on the GUI too!
Care to say a few words about your custom firmware, why and how?

--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

Juan Carlos Contador

unread,
Mar 7, 2016, 10:41:25 PM3/7/16
to ioio-users
why: I had the same problem that appears in this publication ( https://groups.google.com/forum/#!topic/ioio-users/t9xaSr8yZNI ). I finally decided by the most elegant solution.

How: First of all, it seemed I was too exaggerated change (or extend) IOIO much of the code and java interfaces, only to support a particular sensor. I found that the port used for logging was a good choice to output sensor data. Then use this port for output, and this same signal is forwarded to the next pin (put a jumper). On the Java side, I open the latter for UART reading.
The data are collected from the sensor by a function located in main.c, and sent along with the model of the connected load cell, which then in the Java side will be used to configure and calibrate the scale automatically.
Something I forgot ... on the wish list for future versions I think we need a memory area for storing certain data like cookies (Java interface: putInt (name, value), putString (name, value), etc. ... And then ... support for WiFi adapters.

greetings and thanks for your excellent work.

(Sorry if something is not understood quite right, I use Google translator)

Maximillian

unread,
Sep 19, 2017, 2:23:12 AM9/19/17
to ioio-users
Hi Juan/Ytai,

Can I just use the HX711 weight sensor + Driver HX711 24bit gain amplifier ADC Module
and connect it to the analog input pin of IOIO, then read the value?

Or I really need a "custom firmware" as you say?

Please advise.

Thanks.

Ytai Ben-Tsvi

unread,
Sep 19, 2017, 6:26:52 PM9/19/17
to ioio-...@googlegroups.com
I don't understand the question. Are you talking about not using the HX711 altogether or something else?
From what I can tell, using the HX711 with the IOIO would inevitably require either custom firmware or some small MCU between the IOIO and HX711 to act as an adapter.

To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+unsubscribe@googlegroups.com.

Maximillian

unread,
Sep 19, 2017, 9:51:14 PM9/19/17
to ioio-users

Hi Ytai,


Thanks for reply and sorry for the confusion.

I plan to use this weight sensor with IOIO


The item title is "(Load Cell) 20Kg + Driver HX711 24bit gain amplifier ADC Module"

There is one illustration for connecting it to arduino


Based on this illustration, can I assume that I can just connect the load cell to the Driver, and connect the driver to the IOIO?

Or I will need anything else? Maybe the "custom firmware" that you and Juan talking about. 

Thanks a lot.

Ytai Ben-Tsvi

unread,
Sep 19, 2017, 10:43:57 PM9/19/17
to ioio-...@googlegroups.com
See my previous response about your options

To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+unsubscribe@googlegroups.com.

Maximillian

unread,
Sep 19, 2017, 10:47:14 PM9/19/17
to ioio-users
Can you give some hint for the "Custom Firmware" or the small MCU you talking about on your previous response?

Ytai Ben-Tsvi

unread,
Sep 20, 2017, 2:58:09 PM9/20/17
to ioio-...@googlegroups.com
The "small MCU" option is along the line of putting something like an Arduino between the IOIO and the sensor, which will translate the unusual protocol of the sensor into something more standard, such as serial (UART). That is, this middleman will constantly wait for samples from the HX711 and as soon as one arrives, it will write the value on a serial output. The IOIO can then read those values by listening for serial input, which is easy.

Custom firmware means changing the inner workings of the IOIO and client library so that it can talk to this specific sensor. The advantage is that you're saving the middleman. However, it requires you to study the inner workings of the IOIO, be comfortable in developing software for a PIC24 microcontroller, which can be quite a steep learning curve if you haven't done this before.

To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages