Using Discord and ProgramAB in MRL to create your own Discord Bot

kwatters's picture

A while back we added the DiscordBot service to MyRobotLab.  The Discord Bot service acts as a gateway.  

The DiscordBot service implements 2 interfaces in MyRobotLab, the first is UtterancePublisher and the UtteranceListener.  

The idea is that DiscordBot connects to a discord server using the Discord java API.  The DiscordBot logs into the server using a security token that is associated with a discord bot user. 

Help with OpenCV

Tesheridan's picture

I have tried to get OpenCV working on MRL (ver 1.1.823) with a Mac without success, is there a set of instructions or tutorial that I could review - I am new to this and would appreciate some help. Thanks.

This is now sorted - moved to Nixie build.


Voice of Robot not exactly match mouth

AdolphSmith's picture

Hi Guys

I strugle a bit and do not know how to sort this. The robot begin to talk nice . Afther 2 or three words , robot finish it sentence but mouth stops talking. Why. i dont know how to fix this

I  use Nixie





Setting up the Raspberry Pi. Update for Buster and Bullseye

Ray.Edgley's picture
We will need a MicroSD card to hold the Operating System. (OS) I suggest a 32GB class 3, but a class 1 will work.
The last version released was Buster, the most recent is Bullseye in both 32 bit and 64 bit.
In any case you will need to use a flash program to copy it to the MicroSD card.
You can use the Raspberry Pi Imager or another imager, 
I used BalenaEtcher
Using either program flash your chosen OS to the MicroSD Card.

4xADS1115's (giving 16 Analog to Digital channels)

Gareth's picture

Here are some details of how I cobbled up a 16 channel ADC rig for use with MRL's Ads1115 service

As you can see above the i2c SDA/SLA lines require 10k resistors as pull up loads.

The trick to keeping it compact is to the stack and common through the GND,SDA,SCL,VCC pins (see below)

Matrix X,Y plotting Numeric's with the Neopixel service

Gareth's picture

Plotting character sets to the Neo_Pixel Service.

Numbers can be fitted into a 4x5 (with a little flare) matrix, so here is a simple set based in Python to get you going.

Worthy of note is Python has a triple """ option for text declaration, which means you can include new lines in the text input, so I was able to separate the character bitmaps to some degree.

Usage :-

Matrix X,Y plotting with the Neopixel service

Gareth's picture

Python code to enable x,y plotting from the neopixel service, an inviting rabbit hole.

Many Matrix displays have a serpentine LED pattern. This means that odd and even columns are reversed.

Can i download fress jar file for Nixie

AdolphSmith's picture

Can you please give me link to nixie. My pc was capture by Randsome virus so i lost everything please




Importing Python libraries into mrl

alexstarter's picture

Hello everyone! How do I add new Python libraries to myrobotlab. So that my Python 3.7.7 scripts can work?