Page 169 - Programming the Photon Getting Started With the Internet of Things
P. 169

Its uses a building block approach to electronics, which is great for users with little to
        no experience of electronic circuits. The Grove system consists of a base shield and some
        modular blocks; in our instance, the Photon kit comes supplied with the following parts:


               Grove Shield for Photon

               Grove—Button

               Grove—Buzzer

               Grove—Rotary Angle Sensor

               Grove—Temperature Sensor
               Grove—Light Sensor

               Grove—Chainable RGB (red, green, blue) light-emitting diode (LED)

               Grove—Three-Axis Digital Accelerometer (±1.5 g)

               Grove—Four-Digit Display
               Grove—Vibration Motor

               User’s Manual


             In  this  experiment  using  IFTTT,  every  time  someone  mentions  you  on  Twitter,  the

        buzzer and vibration motor will go off for one second, alerting you to the tweet. To get
        started, go ahead and insert the Photon board into the Grove Photon shield as shown in
        Figure 8.11, making sure the orientation is correct.






























        Figure 8.11 Photon base shield.


             For this experiment we are going to be using the Grove buzzer and the Grove vibration
        motor.  Connect  the  Grove  vibration  motor  to  connector  A4  on  the  Particle  shield,  and
        connect the buzzer to the I2C_2 port on the shield. The hardware for this experiment can
        be found in Table 8.2.
   164   165   166   167   168   169   170   171   172   173   174