GroG's blog

Arduino Digital Pin Debounce And Digital Trigger

GroG's picture

 

Debounce

Implemented digital pin debounce based on this . It puts in a 50 ms wait after a state change on a digital line.  Needs testing. 

It should help with encoders, bumpers, and other bouncy switches although remember boys & girls, you should always try to clean your signal at the source :)

Digital Trigger Only


Dynamic Robot Simulators

GroG's picture

Update : Radom Mapper ! - it works !  

The cause and effect :  
Arduino wire changes state  (Bumper) ------  sends an  event to Python --------->  Makes a random wall !


Jython Editor - Becomes Multi-Page

GroG's picture

Something I've wanted for a while is multi-paged Jython editor ... Viola ... (it's still in development - but getting closed to being checked in) 

Now you can have an initialization script in one file, and a State machine in another :)

We can copy paste, from one file to another..

But wait .. There's MORE !


Windows 7 (64 bit) Arduino Service Strangeness - SOLVED

GroG's picture

 

Here I'll go over several issues I have found with the Arduino service & WIndows 7 (64 bit)

FTDI Driver strangeness & Jumpy Oscope

After updating my driver at some point (or unknowingly being updated by Windows) I noticed the Arduino Oscope behaving very strangly.  When I selected a trace on the Arduino to display, the trace line would freeze, then flash quick, then pause, then flash - nothing like the smooth behavior it had previosly.


Arduino to PC Serial Communication Challenges

GroG's picture

MRL runs on a JVM and can communication to the Arduino micro-controller through a serial port.  MRL controls the Arduino through a serial protocol.  

MRL to Arduino uses a 3 byte command set

msg[0] = METHOD
msg[1] = PARAM1
msg[2] = PARAM2


New Motor GUI

GroG's picture

The Motor service gui is being updated.  It has been designed to support multiple motor controllers. This is nice, since there can be a little complexity in attaching a motor to a motor controller.

For example an Arduino can directly drive a simple 2 bit H-bridge connected to a DC motor.  Or a motor shield can be used, which has its own motor port configuration.  Other shields and bridges might have different configuration.


MRL PC <-> Rasberry Pi - Streaming Data Now !

GroG's picture

Quiet computer's USB powering the RasPi

Noisy computer's USB powering the RasPi

2012.10.04 
WooHoo ! - This is a picture of data streaming from an Arduino connected to the Raspberry Pi (running MRL  instance RasPi) connected to my PC (running MRL instance MRL76732)


OpenNI on Linux 32 !

GroG's picture

Finally... Yay !

This morning I finally got this work end to end with a streaming 3D point cloud.  It was slow, but it worked !  The kinect is fast but the display is painfully slow.  If a robot was using the 3D cloud, it wouldn't need a display anyway and there is probably display acceleration software I could be using like JOGL, but its a start !