Is it possible to use Mac+Arduino for homework treats?

Is it possible to activate a robot pez dispenser with Arduino every time I hit 200 words on my essay on my Mac?

Something like this connected to my Mac:

It should be possible if you can write some code on the Mac that sends characters to the serial port when you hit 200 words on your essay. I don't have a Mac, but I have communicated with the Arduino on Ubuntu Linux using Java.

These links may help - assuming you can create some code to figure out when the word count has increased by 200.

Serial Input Basics
Python - Arduino demo

But it might be simpler to jot down the word count on a scrap of paper and award yourself the sweet every 200 words :slight_smile:

By the way, if you choose to take the trouble to write a program you must wait until it is working before having your next sweet :slight_smile:

...R