Mats's blog

Aduino strange errors

Mats's picture

Hi 

I sometimes ( not always ) get some strange errors in the Arduino service.

I think it is some type of timing issue.

Using this little script sometimes reproduce the error. 


DIY Gamecontroller / Joystick

Mats's picture
Today I tested if it ws possible to use the small esp8266-01 together with two i2c boards to make a gamepad. It worked pretty well, except that I need to figure out why the response is slow. Probably due to the rest API, but it could also be some waiting for the A/D conversion. 

Testing uploading MRLComm from new Swing GUI on Windows

Mats's picture

Hi GroG

This is the error I get. The Arduino IDE shows the spash screen and then stops with this message:

 


This post is just for fun LOL

Mats's picture

I installed Google drive. What have I done wrong ?


Servo testing

Mats's picture

I started to test the Servo service to be able to make it work again.

I made some testing on version 1723 and the repeated the same tests on the latest version.


Rotary encoders using Gray code

Mats's picture

Servos often use potentiometers to measure the position. That works fine if you have a good quality potentiometer. A different alternative is to use an optical or mechanical decoder. You can find examples of 3D printed rotary encoders here:   

http://www.thingiverse.com/thing:1957311

It's made in two variants.

Natural encoded ( i.e. simply using binary form where a hole represents 1 and no hole = 0). 

Gray code. Gray code has the advanage that only one bit changes for each step of the rotation.


Install problems on 1843

Mats's picture
If you try to install MRL on later versions you will get this type of error and the logfile will fill up very quickly. 
My logfile went to 1.5 G in just a few seconds.
 
16:45:23.670 [webgui] INFO c.m.f.Service [Service.java:2020] subscribe [python/p
ublishState ---> webgui/onState]
16:45:23.795 [New I/O worker #7] INFO c.m.s.WebGui [WebGui.java:496] POST /api/m
essages
16:45:23.796 [New I/O worker #7] INFO c.m.f.Service [Service.java:2020] subscrib

Using a phone for sound input

Mats's picture

Hi

A very nice way to use MRL from the phone is to use the webgui. But you must have access to a WiFi network for this to work. ( Not really. But you must be able to reach the host where MRL is running from your phone, could be anywhere in the world ).

1. Make sure that your instance of MRL running with the WebSpeechRecognition and the WebGui started. For example you can use this script. It starts a chatbot. with sound input and output. You don't need any servos or anything else to make this work So you can try it without any extra hardware: 


Using RemoteAdapter to connect two MRL instances

Mats's picture

Hi

Today I continued testing RemoteAdapter to be able to connect two MRL instances executing on the two Rapberry PI computers that I have. 

 


Uploading MRLComm to the Arduino

Mats's picture

A short video showing how to upload MRLComm.ino to the Arduino using the Arduino IDE.

It is also possible to upload it using the WebGui, but I prefer to do it this way, since it's easier to understand what's happening.