Networking תקשורת

For the networking assignment i used neil's boards Hello.bus.45.
first i milled 1bridge (traces,interior and 2 nodes (traces ,interior
למשימת התקשורת בין מעגלים, השתמשתי ב מעגלים של ניל.
תחילה כירסמתי מעגל ראשי אחד ((חיתוך פנימי,וחיצוני ( ושני מעגליםמשניים (חיתוך פנימי ,וחיצוני ( נקרא נוד באנגלית)

I used Anna's tutorial to program the boards
I downloaded and saved the C code and makefile and conected the bridge board to the FTDI from one side and the AVR to the other
first . in the code, i changed the bridge ID to 0. and changed the static message to "got" ( my hole sentence is gotmile?).
השתמשתי ב טוטוריאל של אנה כדי לתכנת את המעגלים.
בקוד שיניתי את שם המעגל הראשי ל- 0 ושיניתי את ההודעה שיחזיר אליי.

i connected the AVR to my computer and to the bridge, and connected a FTDI cable to the bridge as well, for power supply and burned the code on it תחילה חיברתי את הכבל של האיי.וי.אר למעגל וכבל אף.טי.די.איי. כדי לספק כח. בקוד שיניתי את שם המעגל הראשי ל- 0 ושיניתי את ההודעה שיחזיר אליי. וצרבתי על המעגל

after programming the bridge, i changed the code from the node board. the next node called 1 and changed the static message to got and so on with the next node. to program it i connected thr AVR an because only the bridge has FTDI connection, connect the bridge to the node. for the second node, we decided to connect a DC motor instead of the led. in order of the board to work, i took out the resistor that was connected to the led, and created a bridge between the 2 pads. לאחר תכנות המעגל הראשי, שיניתי שוב את הקוד עבור המעגל המשני. כעת המס' הוא 1 וכך הלאה למעגל המשני השלישי. כדי לתכנת את המעגל חיברתי שוב איי.וי.אר אבל מכייון שרק המעגל הראשי מקבל חשמל, שירשרתי בין המעגל הראשי למשני עבור המעגל המשני השני, החלטנו לחבר מנוע זרם ישר, כדי שהמעגל יעבוד. יש לנתק את ההנגד שהיה מחובר ללד ולעשות גשר בין הפדים..

When you open the serial port in arduino software you can write the nuצbers 0,1,2 and the you'll get back a message for each of the numbers ( represents each of the boards)first all the boards are getting power at the same time, so all the leds light up, and then it is up to the code delay time. each board light up when you write it's number in the serial port. you can see it in the video. כשפותחים את הסיריאל פורט בתוכנת ארדואינו ניתן לרשום את המספרים שתכנתנו 0,1,2 . כל מספר מחזיר את מה שנאמר לו בקוד ( כל מספר מייצג מעגל) תחילה כל המעגלים מקבלים חשמל ביחד, לכן כל הלדים נדלקים יחדיו, לאחר מכן, כל לד המקושר למעגל נדלק עפ"י המס' אותו רושמים בסריאל פורט. ניתן לראות זאת בוידאו










Here כאן

after programming the 2 nodes me and Omer decided to mill 2 more nodes, so now i have one bridge and 4 nodes. לאחר תכנות שני המעגלים, החלטנו לכרסם עוד 2 מעגלים. כעת יש לי מעגל ראשי אחד ושלושה משניים.

Now i changed the code again for each of the 3 nodes, and for the bridge. and i decided to changed the delay time for each of the nodes. you can see it in the video כעת שיניתי את הקוד שוב, עבור כל אחד מארבעת המעגלים וגם שניתי את הזמן שבו כל מעגל יעבוד. ניתן לראות זאת בוידאו





Here כאן