Controlling GPIO via web (Raspberry Pi 2) - Raspberry Pi Q&A, Help & Troubleshooting

Hello,
WebIOPi isn't compatible with Raspberry Pi 2.
Is there another way to connect GPIO on RPi2 via web?

Depending on how sophisticated you want that control to be, it's not hard to achieve from scratch. Here's a complete example of toggling a few GPIO pins from the web: https://github.com/pimoroni/Raspberry-Pi-Web-RGB
Or if you're dead set on using WebIOPi there seem to be patches for Pi 2 support here: https://github.com/acrobotic/Ai_Demos_RPi/tree/master/demos/gpio
They look legitimate, since they include the shifted memory address for the Pi 2 GPIO ( https://github.com/acrobotic/Ai_Dem.../webiopi_raspberry_pi_2_cpu_support.patch#L45 ), but I haven't tried applying them.

Related

dumping a code

Greetings everyone
I have worked on 8051(atmel), processor.
in those processors we need to dump codes using a dumper.
The question is how do we need to dump the code in the raspberry pi.
My project is to control a small bulb or an LED just to switch it on and off,
and if i need to do that wirelessly how do i do that. i mean if i give an input using my mobile(android) i want that light to be switched off.
P.S : i am using WI-FI.
Php?
Android app or web server -> php request -> MySQL -> c or python -> GPIO -> resistor -> transistor ?
That's one way to do it.
Sent from my iPad using Tapatalk HD
No vinodmadhu6, the CPU on the Raspberry Pi is nothing like the Atmel AVR chips, you can program using a range of modern programming languages.
I'd say Python would be a good way to go, especially if AVR has been your main experience of programming up until now, as it is an easier language to learn
An 8 bit 8051 it definitely isn't! It is a full 32 bit ARM processor capable of running various flavours of Linux.
It is possible to pull the voltages high and low on the pins on the header of the main board, referred to as the GPIO.
Have a read of this:-
http://elinux.org/RPi_Low-level_peripherals

Has anyone used Raspberry Pi for computer vision? (OpenCV)

A team I am on is currently working on an autonomous quadcopter (AR.Drone 2.0 as the platform) that would have to navigate by itself, as well as identify some writing on a sign (made up language, we have been provided an image of what the writing will look like) and identify an object on a desk. Does anyone have any experience using a RP for CV? We are looking at possibly implementing OpenCV, at least as a base.

Need help for merging python programs

I was doing my first raspberry pi electronic project. I choosed the adafruits Google docs logging project for a start. The project was a success and I obtained a complete output. My problem is , when I looked into the python program provided by adafruit (got it from github) it is calling other small programs. So I looked one of the called programs and it again calls other program.
I want to write a complete program that includes all the necessary things ie a stand alone version.
I want to write it in python 2. Also use a gpio pin 5. My model of pi is raspberry pi 2 model b.
I don't know whether I can include driver in my program. But if it is possible , I also want to include the driver too, please help me.

How to create a custom keyboard using Raspberry Pi?

Hi,
I want to create a custom keyboard using a Raspberry Pi. I have a very limited knowledge in Hardware and Electronics. But I know how to code in Java/Python/C/C++ very well.
The keyboard should be able to store every text file that I type into it. That is, it should have an internal storage. Additionally, it should be able to connect to any Android/iOS/Windows device like smartphone, tablet etc, so that all text content typed is shown in the required device in real time. All text typed should also provide real time audio feedback. As a trial I have created 2 prototypes where one is running on Raspberry Pi with internal storage with real time audio feedback. And another device which runs on Arduino Leonardo to connect to hand-held devices. But for the final product we need to create a single device with both features in built.
In summary, here are my requirements:
Audio feedback: Recites every word I type in real time through headphone jack.
Internal storage: The keyboard should have an internal storage slot to store what I type.
Portable: It should be easy and light to carry around.
Cost effective: It should use cost effective solutions/materials.
Plug-N-Play: Connect to any Android/iOS/Windows device like smartphone, tablet etc. and act as external keyboard.
Battery Life: The keyboard should have a reasonable battery life.
Questions:
Which model of the Raspberry Pi should I use to create the keyboard. It needs to be an most inexpensive model which can satisfy all the above requirements. Is it possible to use the Raspberry Pi Zero and then add any required modules?
We need a USB HID + Linux version that runs Python or any other distribution with text to speech. Currently, for a prototype, we are using Arduino Leonardo for USB HID and Raspberry Pi (B+ Model) for Text to Speech conversion (we are using Espeak at the moment).
I have a custom design for the keyboard but the ports of the raspberry pi don’t align with the custom design. What options do I have here? Example: Assume, I want the headphone jack to be on the side of the keyboard. But the headphone jack is placed at the bottom in the raspberry pi.
How to create the outer casing for the product? Again, I want to use only cost effective material, yet it should look as professional as possible.
Thanks!!!!!!!!!!!!!
johny_nikhil said:
Hi,
I want to create a custom keyboard using a Raspberry Pi. I have a very limited knowledge in Hardware and Electronics. But I know how to code in Java/Python/C/C++ very well.
The keyboard should be able to store every text file that I type into it. That is, it should have an internal storage. Additionally, it should be able to connect to any Android/iOS/Windows device like smartphone, tablet etc, so that all text content typed is shown in the required device in real time. All text typed should also provide real time audio feedback. As a trial I have created 2 prototypes where one is running on Raspberry Pi with internal storage with real time audio feedback. And another device which runs on Arduino Leonardo to connect to hand-held devices. But for the final product we need to create a single device with both features in built.
In summary, here are my requirements:
Audio feedback: Recites every word I type in real time through headphone jack.
Internal storage: The keyboard should have an internal storage slot to store what I type.
Portable: It should be easy and light to carry around.
Cost effective: It should use cost effective solutions/materials.
Plug-N-Play: Connect to any Android/iOS/Windows device like smartphone, tablet etc. and act as external keyboard.
Battery Life: The keyboard should have a reasonable battery life.
Questions:
Which model of the Raspberry Pi should I use to create the keyboard. It needs to be an most inexpensive model which can satisfy all the above requirements. Is it possible to use the Raspberry Pi Zero and then add any required modules?
I have a custom design for the keyboard but the ports of the raspberry pi don’t align with the custom design. What options do I have here? Example: Assume, I want the headphone jack to be on the side of the keyboard. But the headphone jack is placed at the bottom in the raspberry pi.
How to create the outer casing for the product? Again, I want to use only cost effective material, yet it should look as professional as possible.
Click to expand...
Click to collapse
Did u complete it.if yes plz ping me
---------- Post added at 04:51 AM ---------- Previous post was at 04:50 AM ----------
Plz ping me i want to know about your project

Need a Help in setup

I have a raspberry pi 2 which i want to run & configure without monitor and keyboard mouse.
Can anyone help me regarding this?
Sent from my Redmi 3S using Tapatalk
ceasar47 said:
I have a raspberry pi 2 which i want to run & configure without monitor and keyboard mouse.
Can anyone help me regarding this?
Click to expand...
Click to collapse
Is raspbian already installed on the rpi? If raspbian is working and the raspberry pi is connected to your network you should be able to use SSH to connect to it. You would need to know the IP of the RPi on your network and then you would need an SSH client on another machine (like your laptop, desktop, etc) to connect to the RPi. I believe SSH is fully configured already in Raspbian.
If you can SSH into your RPi it will give you a command line interface with the RPi. If you're looking to use the RPi GUI you could then configure VNC to use the RPi desktop from another computer.

Categories

Resources