Go to advanced search

by Cooloo
Mon Mar 07, 2016 2:05 am
Forum: Beginners
Topic: WiFi Setup
Replies: 1
Views: 449

WiFi Setup

Hi All,

Is there anyway of connecting to WiFi (headless) using a WiFi dongle?
by Cooloo
Sun Mar 06, 2016 2:29 pm
Forum: Beginners
Topic: Weaved Services
Replies: 4
Views: 941

Re: Weaved Services

@fruitoftheloom Yes, I installed WebIOPi
by Cooloo
Sat Mar 05, 2016 4:35 pm
Forum: Beginners
Topic: Weaved Services
Replies: 4
Views: 941

Re: Weaved Services

Hi all, I want to be able to remotely control a LED, but, what I realised is that I need to do port forwarding. I am having problems with the port forwarding, so, I found an alternative, Weaved. I installed the Weaved services onto the Raspberry Pi 2 and I don't know what to do now. https://www.wea...
by Cooloo
Sat Mar 05, 2016 3:20 pm
Forum: Beginners
Topic: Weaved Services
Replies: 4
Views: 941

Weaved Services

Hi all,

I want to be able to remotely control a LED, but, what I realised is that I need to do port forwarding. I am having problems with the port forwarding, so, I found an alternative, Weaved. I installed the Weaved services onto the Raspberry Pi 2 and I don't know what to do now.
by Cooloo
Mon Feb 29, 2016 7:11 pm
Forum: Troubleshooting
Topic: Running a Webpage
Replies: 12
Views: 1871

Re: Running a Webpage

I think I have to do port forwarding. Does anyone have ideas on how to do it?
by Cooloo
Mon Feb 29, 2016 3:55 pm
Forum: Beginners
Topic: Communication between a webpage and raspberry pi
Replies: 1
Views: 378

Communication between a webpage and raspberry pi

I am trying to wirelessly control an LED through the internet. How am I to connect the webpage to the Raspberry Pi?
by Cooloo
Sun Feb 28, 2016 3:29 pm
Forum: Troubleshooting
Topic: Running a Webpage
Replies: 12
Views: 1871

Re: Running a Webpage

Zorac wrote:you need some sort of onclick portion within your buttons, something like this

onclick="location.href=\''.$_SERVER['PHP_SELF'].'?led=on\'"

then for you php check if led isset and if it equals 'on' or 'off'
I am lost with the onclick portion
by Cooloo
Sun Feb 28, 2016 4:54 am
Forum: Troubleshooting
Topic: Running a Webpage
Replies: 12
Views: 1871

Re: Running a Webpage

This is the code for the on and off buttons <html> <head> <title> LED </title> </head> <body> <br> <form method = "GET"> <button class = "btn" name = "ledOn"> LED On </button> <button class = "btn" name = "ledOff"> LED Off </button> </form> <?php if (isset($_GET['ON'])) { exec("sudo python /home/pi/...
by Cooloo
Sun Feb 28, 2016 1:05 am
Forum: Troubleshooting
Topic: Running a Webpage
Replies: 12
Views: 1871

Re: Running a Webpage

chrisoh wrote:You're welcome. You lost me with the buttons though. Chocolate I hope, mmmmm
Ok...on the webpage, there are 2 buttons (LED On and LED Off)
I want to be able to remotely turn on and off the LED by pressing the buttons.
by Cooloo
Sun Feb 28, 2016 12:17 am
Forum: Troubleshooting
Topic: Running a Webpage
Replies: 12
Views: 1871

Re: Running a Webpage

When I transferred it to /var/www/html it worked.
Now I have another problem
I want to be able to turn on and off an LED using the webpage, but, when I click the buttons, it is not working.

How can I fix this?
by Cooloo
Sat Feb 27, 2016 11:53 pm
Forum: Troubleshooting
Topic: Running a Webpage
Replies: 12
Views: 1871

Re: Running a Webpage

scotty101 wrote:Where have you placed the file example.php?

I think it is supposed to be inside /var/www/
That is where I placed the file
by Cooloo
Sat Feb 27, 2016 11:22 pm
Forum: Troubleshooting
Topic: Running a Webpage
Replies: 12
Views: 1871

Running a Webpage

I set up the raspberry pi as a server, but, I am unable to run a webpage. When I try to run a simple webpage on my computer, I am getting this error.
error.PNG
error.PNG (10.47 KiB) Viewed 1871 times
I am not sure why that is happening. How to fix this problem?
by Cooloo
Mon Feb 22, 2016 8:06 pm
Forum: Troubleshooting
Topic: IP address
Replies: 1
Views: 318

IP address

When I first started to use it (with a WiFi dongle), the IP address was 192.168.1.18. Then, I tried connecting to that address (headless) and it was not working, then I realised that it changed to 192.168.1.2. Now, I am unable to connect to the last address because I assume that it changed again. Sh...
by Cooloo
Sun Feb 14, 2016 9:57 pm
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Re: Current Sensing

Thanks for all the help. I finally got the MCP 3008 working properly with the sensor. The voltage divider that I didn't have in initially was the problem. Thanks a lot again
Now onto connecting the relay. Will let you all know how it goes.
by Cooloo
Mon Feb 08, 2016 8:33 pm
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Re: Current Sensing

Thanks as always for your assistance. I switched to using the MCP 3208 as I blew the 3008. I connected the voltage divider 2k4 and 4k7 as shown in the attachment. (please excuse the tiny pic, I cropped the photo to get the 65k limit). I'm now getting a reading of 310 (remember I was getting 1024 bef...
by Cooloo
Sun Jan 31, 2016 1:41 pm
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Re: Current Sensing

Dout -> SPI_MISO will fry the MISO pin on your Pi if you don't divide it down. Never hook up a 5V output to a 3v3 input without dividing the voltage down tot the 3v3 range. This is how all the parts are connected. I hope you can understand this information. From Current sensor:-> 1) Vcc -> 5V on th...
by Cooloo
Thu Jan 28, 2016 8:14 pm
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Re: Current Sensing

This is how all the parts are connected. I hope you can understand this information. From Current sensor:-> 1) Vcc -> 5V on the RPi2 2) GND -> GND on RPi2 3) Vout -> CH0 (pin 1) on MCP3008 (the ADC) From ADC to RPi2 1) Vdd and Vref -> 5V 2) AGND and DGND -> GND 3) CLK -> SPI_SCLK 4) Dout -> SPI_MISO...
by Cooloo
Thu Jan 28, 2016 2:34 am
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Re: Current Sensing

Thanks for your speedy response Mikronauts. I greatly appreciate your advice. Of course the circuit was connected with the sensor grounded and 5V from the pi (even though I did not indicate that in my previous posts). The code is in fact running but the issue is, as I explained earlier the 1023 read...
by Cooloo
Thu Jan 28, 2016 1:14 am
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Re: Current Sensing

I've connected the Vout from the sensor directly to channel 0 in the ADC and getting 1023 reading wether the appliance is on or off.
Is connecting Vout directly to the ADC correct or are other components (resistors capacitors etc) needed?
by Cooloo
Mon Jan 25, 2016 4:21 pm
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Re: Current Sensing

Yes I'm using an ADC but I'm only getting a High/on reading whether the appliance is on or off
by Cooloo
Sun Jan 24, 2016 6:09 pm
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Re: Current Sensing

I switched the sensor to the hot (live) and I'm getting the same reading (1023=5V) whether the appliance is on or off. I should be getting 2 different values for on and off. Any thought on this?
by Cooloo
Fri Jan 22, 2016 8:59 pm
Forum: Automation, sensing and robotics
Topic: Current Sensing
Replies: 21
Views: 4780

Current Sensing

I am trying to measure current using the ACS712 module along with the MCP3008 ADC.
Is the module connected to the live or neutral of the supply? I am getting a large current reading (when it is connected to the neutral) whether current is flowing in the circuit or not.
by Cooloo
Sun Nov 08, 2015 5:46 pm
Forum: Beginners
Topic: Power sensors
Replies: 8
Views: 1724

Re: Power sensors

Could you suggest an ADC that is compatible with the ACS 712 and the RPI?
by Cooloo
Thu Nov 05, 2015 12:53 am
Forum: Beginners
Topic: Power sensors
Replies: 8
Views: 1724

Re: Power sensors

Boyoh thanks for your invaluable advice. I saw on Youtube a circuit where the ACS712 current sensor was connected directly to the Arduino board without using the optocoupler as an interface https://youtu.be/ob_h5PNcrBM. So I guess it can also be used in this way with the RPI. What are your thoughts?
by Cooloo
Tue Nov 03, 2015 10:26 pm
Forum: Beginners
Topic: Power sensors
Replies: 8
Views: 1724

Re: Power sensors

Thanks a lot for this suggestion. I saw this relay Sun Founder 2 Channel 5V Relay Shield Module for Arduino UNO 2560 1280 ARM PIC AVR STM32 Raspberry Pi which is used with ordinary plugs. This relay would only turn on and off the power to the appliance though. I would like to determine the status (w...

Go to advanced search