hola soy un mensaje secreto wiwiwi wawawa

WEEK 15: NETWORKING & COMMUNICATIONS

Assignment:

  • Design and build a wired &/or wireless network connecting at least two processors.
  • | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | || | | | |


    // INFORMATION & RECOMMENDATIONS


    - This is a big big big world to understand, try to keep it simple.

    - You cand read a I nice summary about the different communication protocols in Ismael Velo's Fabacademy website.

    - As my final project is about several modules sending data from sensors attached to the human body in movement, I made a research about the possibilities of the radio chips and modules. As I'm not an engineer it has been hard to understand. I finally opted to use the nRF2401+ radio module, because I found a lot of documentation/information about it, and also because it has a small built in antenna and it works also with SPI communication protocol.

    >>>NRF4201+

    images

    - NRF4201+ is a radio module with a a built in antenna, on chip voltage regulator and can tolerate 5v inputs (so the microcontroler can still work at 5 volts!). These modules are very cheap and they include all the elements that the radio needs to function: oscillator, mixer, power amplifiers, low noise amplifiers, filters, antenna. It

    -Take a look at Learn! Do! useful site with eeverything you want to know about this module.

    -The Nordic nRF24L01+ integrates a complete 2.4GHz RF transceiver, RF synthesizer, and baseband logic including the Enhanced ShockBurst™ hardware protocol accelerator supporting a high-speed SPI interface for the application controller. The low-power short-range (50-200 feet or so)Transceiver is available on a board with Arduino interface and built-in Antenna.

    - Take look a look also at these Fabacademy project - documentation from Ismael Velo.

    About the pins and connections of the module:

    images

    I followed connections from this "Starter Kit" site. Code is also very well documented.

    >>>>Libraries:

  • NF24 ( This is what I used , and there is a lot of documentation about it )
  • NF24Network
  • RF24Mesh (network and mesh work together)
  • MySensors
  • AVRLib
  • Radiohead
  • Mirf ( A lot of documentation also, but seems to be old )

  • | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |


    // GOALS

  • IMMEDIATE: Create system to receive and transmit data from each module.
  • FOR MY FINAL PROJECT: Understand how to create a radio communication mesh.
  • Design two boards for the nRF4201L modules
  • nRF4201 Modules weren't available at the lab. I bought from ebay 4 of them, so I decided to take the chance to work on my "fabduino".

  • IMMEDIATE: Design and make my "TURBULENTINO", based on Arduino Leonardo, Jhonathan Graham's FabLeo & Jalapino from my dear classmate Luiz Bueno. Tnx to him and Kat who explained me a lot of things to take into consideration!
  • Use [TURBULENTINO] to connect the radio module working as a receiver.
  • Could build a board including Attiny85 and nRF4201L+ module to transmit data, Arjun Ganesan project. seems to be intereseting.
  • His fritzing image:

    images

  • STEP 1: Achieve my idea of wireless comunication :
  • images

  • STEP 2: Achieve my idea of wireless + network (or mesh) comunication :
  • images


    | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |


    // [ TURBULENTINO ]


    - I based my design in Fableo's design, and also watching constantly at ATMega32U4 datasheet to understand the possibilities of this microcontroler.

    I decided to make this one, as it includes USB communication. Once you upload the Burnloader, you can get rid of FabISP.

    Jalapino's design was super useful to follow already ordered connections ( thanks, thanks, thanks Luiz! ).

    I kept with FabLeo's RESET button + 2 leds (one to confirm your board is receiving power, and the other (pin 13) to see when your program is being uploaded into it other.

    images


    images

    >>Milling Turbulentino

    Make a separate file for milling the holes and use 1/32 bit. Holes should be in black and the rest of the image in white. This is because the milling bit will move only inside black color. If you invert it you will have bigger holes that will not work.

    images

    images

    images


    images


    >>>TURBULENTINO BOM

    UnitsName In Eagle BoardComponentValueComments
    8C1, C2, C3, C4, C5, C8, C9, C10Capacitor0.1uF 
    2C6 , C7Capacitor18pF 
    2LED, LED2LEDNAAvoid White Led, it's too bright.
    2R1, R2Resistor22 Ohm 
    2R4, R7Resistor499 Ohm 
    1R3Resistor10 K 
    1R6Resistor680 
    2SV2Female Pin Header8x1 
    1U$1USB Mini B connectorNA 
    1U$2 Male Pin Header2x3 
    1U$3Crystal16 MHz 
    1U1ATMEGA32U4-AU 8-bit Microcontroller with ISP Flash and USB Controller - AMTEL
    1S1Switch6mmhttp://www.digikey.com/product-detail/es/omron-electronics-inc-emc-div/B3SN-3112P/SW262CT-ND/60835
    1SV1Female Pin Header5x1 
    1U$4Male Pin Header2x2

    images


    | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |


    // PROGRAMMING [TURBULENTINO]

  • Connect Turbulentino using a miniUSB B - USB cable to your computer. If the led in the left of the USB connector turns on, it means power is being received.
  • images

  • Connect FabISP board to your computer and to Turbulentino.
  • Open Arduino IDE and select in the main menu: Board - Arduino Leonardo, Programmer - USBtinyISP
  • Burn Bootloader
  • If Arduino throws the message of "Done Uploading", then you are ready to go!
  • Unplug FabISP.
  • Try the classic Arduino - Blink test for your LED in pin 13.
  • images



    | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |


    // PROGRAMMING RECEIVER & TRANSMITTER 1,2

    CONNECTIONS:

    So finally, my modules arrived!

    A) Arduino UNO: As I mentioned before, after reading a ot of documentation, I decided to follow examples from starter kit site.

    images

    A) [Turbulentino]

    For my custom "fabduino" - [turbulentino] I connected CE to pin 2, CSN to pin 3, and MISO, SCK and MOSI to the correspondant ISCP connections. If you are really using my custom PCB, then you might look at this labeled diagram that I made:

    Labeled Turbuentino:

    images


    //Test 1: Getting Started

    Sending messages + nrf24L01+ from Citlali Limonada on Vimeo.



    // Test 2: Hello radiocomunicación!


    // Test 3: Hello potentiometer!

    For this I have to thank Thomas Sanchez Lengueling who answered to my desperate message in facebook, looking for some recommendations about using this modules.

    He nicely appeared and helped me solve the problem about sending sensor values as bytes. We created created an array of bytes, and then filled it with the values from the potentiometer.

    This work was done after week 15 thinking on applying it on my final project using my input bend sensor.

    This is the code that we generated, and you can watch the video of it working on my final project documentation.





    | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |



    >>FILES

    [TURBULENTINO]:

    Eagle files (schematic + board): :D

    PNGS: @_@

    RMLS: *_*

    CODE:

    Click over the GIST frames and you'll be directed to my site account with links to download .ino files.




    ...w14 w16...

    Citlali Hernández - Fab Academy - 2016