Recitation 8: Serial Communication by Molly (Weiyi He)

  1. From Arduino to Processing

Vital codes in Processing:

*Mind: Don’t forget to put the reading of sensorValues into the draw loop, so that the values would be updated.

Vital codes in Arduino:

2. From Processing to Arduino

Vital codes in Processing:

*Mind: The number keys are Chars. Some keys are coded.

*Improvement could be: Set the values at 0 when each conditional ends. In this way, the buzzer wouldn’t keep ringing.

 

Vital codes in Arduino:

Leave a Reply