-
Notifications
You must be signed in to change notification settings - Fork 1
Software
For this tutorial, we are gonna use "raspbian Jessie lite" which is downloadable from Rasberry Pi official website. It is suggested for beginners to download the beginner version from the Raspberry Pi official website and follow the guide from there.
If you have finished downloading your "raspbian Jessie lite".
The next thing you need is an SD card flashing tool.
In this tutorial, we are gonna use Etcher version 1.0.0 which is suggested by Raspberry Pi.
Repeat this step for all your SD cards
Insert one of your SD cards to the slot on Raspberry Pi
Raspberry Pi model b has built in wifi support but you have to configure it first.
Plug in your ethernet cable and power cable to your Raspberry Pi.
Wait for the light array on your sense HAT module to stop working.
Next step is to locate at which network address your Rasberry Pi is at.
You can do this either looking up the IP from the router or scan the network.
We are gonna use the latter method.
There are multiple tools available for scanning your network.
For this tutorial, we are gonna use IPScanner which is easy and portable.
Press run
Press Scan
For easier detection it is suggested to connect only one Rasberry Pi to the internet at this time.
If Raspberry Pi is correctly connected to the internet. The list should contain it this way.
Now that you have your IP. We're gonna access it with Putty which is an SSH client.
Insert IP to the correct field. Make sure you select “Connection Type SSH”.
Then press open.
If the connection was established a login prompt should pop up.
Default login credentials
username:pi
password:raspberry
Make sure to write down all the IPs of all the Raspberry Pi-s they are needed in further steps
Make sure you have your wifi details written down.
We are gonna use nano editor for this part if you're experienced with any other editor feel free to use it.
Write sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
You should see something like this.
Now edit the following lines in the next code block with your wifi psk and ssid.
SSID is wifi name
psk is wifi password
network={ssid="name"psk="password"}
Now append it after update_config=1.
To save file press CTRL+X.
Open up your cmd and write ipconfig and look for a Default Gateway line and write the value of that down.
Write sudo nano /etc/dhcpcd.conf
to your command line. Press CTRL+W and CTRL+V to get to the bottom of the file.
Edit the lines within code block with your information.
interface wlan0 static ip_address=Raspberrypi ip static routers=gateway static domain_name_servers=gateway
If your home router uses default settings you should not run into any problems.
Append those lines after nohook lookup-hostname
and save the file.
To make sure your wifi doesn't disconnect. We need to turn off power save for wifi.
Type sudo nano /etc/rc.local
and add sudo iw dev wlan0 set power_save off
before exit 0
and save the file
write sudo nano /etc/apt/sources.list
Remove the # in front of deb-src and save the file
To make sure your Raspberry Pi is on the latest updates it's recommended to write sudo apt-get update
and sudo apt-get upgrade
to the command line and wait for them to finish.
If a prompt comes up press y and enter.
It is required to enable I2C module so software can read the input from sensors.
Write sudo raspi-config
. Select interfacing options. Choose I2C press enter and enter. Move to finish with the tab key.
The next step is to install tools for your i2c module.
Write sudo apt-get install i2c-tools
wait for it to finish.
If a prompt comes up press y and enter.
Write i2cdetect -l
you should see something like this.
i2c-1 i2c bcm2835 I2C adapter I2C adapter
If the first field isn't i2c-1
write that down you'll need that later.
If something went wrong repeat the steps before.
Congratulations you should be finished with configuring your weather outposts.
Now write sudo reboot
and Repeat these steps for your other outposts.
This step is only for the Raspberry Pi with the display
We need to install desktop environment for your control post for it to display the GUI.
Write sudo apt-get install lxde-core lxappearance
and wait for it to finish.
Then write sudo apt-get install lightdm
and wait for it to finish.
If that's all done you should be done with your Raspberry Pi configuration.
Firstly, we need to select our Raspberry Pi-s and give them information which one is gonna run which application.
For that press configure on the left sidebar. Should look like this
Under Networks tab press select on Ethernet row and wait for the CDP Studio to scan your network.
Find Your Raspberry Pi devices from the device list and add the usernames and passwords so that CDPStudio can connect to them.
If you have inserted correct information for your devices. It should show you the vendor name and MAC address.
Next step is to give each Raspberry Pi their application which is done in Application tab
Move to application tab and select the devices for your applications.
GUI should be placed on the device that uses a display. Inside and Outside should be placed on devices that are outposts.
If you have everything done it should look like this.
Make sure you have the Raspberry Pi kit installed. If not then select from the help menu, the package manager then "add or remove components" and expand the CDP X.X.X list. Select Raspberry Pi 32bit kit and click next
CDPStudio uses i2c module to get information from the sensor. For that, to work you have to specify the adapter location.
Which was done at Raspberry Pi setup. The Default adapter location is /dev/i2c-1
.
Open up WeatherStationSystem and select inside and select sensor
Click on the Properties tab to expand it and look for adapter field and add /dev/i2c-1 to its value
If all is correct should look like this.
To change the default meter you need to change to following values.
- minValue - Minimal value on the meter
- maxValue - Maximum value on the meter
- textPrefix - Prefix on the meter
- textSuffix - Suffix on the meter
For more information about GUI
- You can use cdpRouting to link your graphical elements with your signals.
To Start, the project right click "weatherstationsystem" and press run.
This project will run for 1 hour in trial mode. For more licensing info click here.