Category Archives: Uncategorized

State machine example from class – “Shoo Robot”

Posted in Uncategorized | Leave a comment

State machine example – Golf ball collector

State table whiteboard snapshots: Code:

Posted in Uncategorized | Leave a comment

SCARA kinematics – example M-file and whiteboard snapshot

Posted in Uncategorized | Leave a comment

Kinematics and mini-project ideas – whiteboard snapshots

Posted in Uncategorized | Leave a comment

HC-SR04 ultrasonic rangefinder example code for dsPIC30F4011

The following example program for a dsPIC30F40011 microcontroller takes a reading from a HC-SR04 ultrasonic rangefinder once every 200ms. The dsPIC 30F4011 is running at 30 MIPS (using the internal fast RC oscillator with 16x PLL multiplier). RC13 is a … Continue reading

Posted in Uncategorized | Leave a comment

Slaughterbots video

This thought-provoking video explores some of the dangers of so-called autonomous weapons. I think it’s important for all of our futures that more people become aware of the debate about autonomous weapons. Videos like this seem like a very effective … Continue reading

Posted in Uncategorized | Leave a comment

Two alternative state machine structures with Timer 1 millisecond counter

These are the two versions of the dsPIC30F state machine code we looked at in today’s class, both of which use a Timer 1 interrupt service routine to increment a millisecond counter that is used to trigger timeout state transitions. … Continue reading

Posted in Uncategorized | Leave a comment