Posts
Week 12_ 5/1/19
- Get link
- X
- Other Apps
Since it is close to the end of the project term. We are deciding to dismiss the wireless capabilities and have that as a future goal for next year. The team still has a lot to get done before we are able to present the bogie. I helped with moving the poles into the room and measuring it so that the pole is ready to be cut.
Week 11_ 4/24/19
- Get link
- X
- Other Apps
To understand the NRF24L01 code, I tried to use the module functions to simply turn on an LED. The code is shown below. I believe that once the initial parameters are set up in and before the setup, the code should be relatively simple. The radio.read and radio.write functions are necessary and for the master code used for our purposes, these functions simply need to be placed in the correct locations to get data transferred from the mater bogie to the LCD screen and remote. Transmitter Code to turn on an LED: #include <SPI.h> #include "RF24.h" const int led = 43; int ledState = 0; RF24 radio (7, 8); // CE, CSN. “radio” can be renamed to anything byte address[6] = {"0"}; char text[100] = "Hi"; void setup() { Serial.begin (9600); delay(1000); radio.begin(); radio.setChannel(115); // set frequency to channel 115 radio.setPALevel(RF24_PA_MAX); radio.setDataRate (RF24_250KBPS); radio.openWritingPip
Week 10_ 4/17/19
- Get link
- X
- Other Apps
The NRF24L01 modules have arrived and being worked on. Necessary Libraries downloaded from: https://github.com/nRF24/RF24 This week we presented our second powerpoint to the class. I worked on the wireless communication portion and a couple of the beginning slides. I also helped with correcting the titles to make sure they are descriptive statements.
Week 7_ 3/20/19
- Get link
- X
- Other Apps
I purchased the 10 NRFL01 wireless modules on Amazon for $11. We will be using 1 of them for the master bogie. I researched how to set up the modules while they are being shipped and have found example codes for the receiver and transmitter code shown in Figure 1 below and have tried to see if it will work. It seems that the code is sending the "Hello World" text but with noise/ junk between each sent message on the Serial Monitor. Figure 1.a. Receiver module code on Arduino Figure 1.b Transmitter code on Arduino The wiring should be as in Figure 2 below with the supply voltage being 3.3V instead of 5V. Figure 2. Arduino to NRF24L01 wiring This information was found on: https://howtomechatronics.com/tutorials/arduino/arduino-wireless-communication-nrf24l01-tutorial/