Skip to content

14.5 Group Project- Networking and Communications

This week, our group assignment is to send a message between two projects.

I was very excited to test out the “bus” that I had made with others in my group. Since I had a spot for an additional node on the end of it, we decided to use this bus and try to add one of Nidhie Dhiman’s ATTiny 412 PCB’s. We used an Arduino with the Parent, Child 1, Child 2, and Child 3 merely as a power source. To prove that the Parent board was controlling the others, we uploaded a basic blink code onto the Arduino that was demonstratiing the blinling with the builtin LED.

We uploaded the following code onto her board with no problems.

// Wire Peripheral Sender
// by Nicholas Zambetti <http://www.zambetti.com>

// Demonstrates use of the Wire library
// Sends data as an I2C/TWI peripheral device
// Refer to the "Wire Master Reader" example for use with this

// Created 29 March 2006

// This example code is in the public domain.


#include <Wire.h>

void setup() {
  Wire.begin(6);                // join i2c bus with address #6
  Wire.onRequest(requestEvent); // register event
  Serial.begin(57600);
}

void loop() {
  delay(100);
}

// function that executes whenever data is requested by master
// this function is registered as an event, see setup()
void requestEvent() {
  Wire.write("hey"); // respond with message of 6 bytes
  // as expected by master
}

We should have seen the following message in the serial monitor: hihellohey. However, we were unable to get Nidhie’s ATTiny412 to send the “hey” message back to the parent.

I knew that classmate, Aaron Logan used an ATtiny1614 PCB for his Networking project, and we asked him to join our group this week and try out his boad where Nidhie’s board was. We had success with Aaron’s board! It was incredibly rewarding to see the bus work and to see my Parent, Child 1 and Child 2 all interacting!

We then decided to try out Charlie’s board in the last position on the bus. Charlie used an ATTiny1614 for his work, and we were all getting very well-versed in how to connect and program all of the PCB’s. Charlie’s ATTiny1614 also worked perfectly.

I participated in all of the group work we did (as shown in the videos). I recorded the videos and uploaded them to YouTube.

To see our project page, please visit our site.


Last update: May 19, 2022