Go to advanced search

by Cole1717
Sun Sep 25, 2016 3:57 pm
Forum: Networking and servers
Topic: Screen Streaming via django server on pi
Replies: 1
Views: 560

Screen Streaming via django server on pi

I am working on a feature for a project and I'm not sure where to start. I have a django server running on a raspberry pi 3. I want one user (lecturer) to be able to connect to a server, click a screen cast button, and then anyone else (students) connected to the server can watch the screen live. Do...
by Cole1717
Sun Apr 17, 2016 11:43 pm
Forum: Graphics, sound and multimedia
Topic: How to make default soundcard for root.
Replies: 0
Views: 337

How to make default soundcard for root.

I am using a raspberry pi 2 with Raspbian Jessie. I am creating a spectrum analyzer in c++ using a Adafruit RGB Matrix. I set the default soundcard to use an external usb soundcard which works as expected. I started writing code that uses the matrix. The problem is that the matrix is initialized wit...
by Cole1717
Sun Mar 06, 2016 11:04 pm
Forum: C/C++
Topic: Installing Third Party C Library
Replies: 9
Views: 1258

Re: Installing Third Party C Library

The supplied makefile has the examples in it as targets. You could model your application after one of the examples and modify the makefile ti build it in the same way that the examples are built. Yea, i didn't really understand how Make works, so I did some reading. After looking through the Makef...
by Cole1717
Sun Mar 06, 2016 9:30 pm
Forum: C/C++
Topic: Installing Third Party C Library
Replies: 9
Views: 1258

Re: Installing Third Party C Library

It doesn't look like the author has considered doing anything other than building his examples :-( I'm not very familiar with the workings of c/c++. I have only ever done basic projects using the standard libraries. I would think getting basic code running would be the first thing to try if you kno...
by Cole1717
Sun Mar 06, 2016 9:25 pm
Forum: C/C++
Topic: Installing Third Party C Library
Replies: 9
Views: 1258

Re: Installing Third Party C Library

Thanks for the reply. Running 'make install' returns "No rule to make target 'install'. Stop." Does this mean the rest of your solution is inapplicable? Is there a way to do this manually?
by Cole1717
Sun Mar 06, 2016 8:52 pm
Forum: C/C++
Topic: Installing Third Party C Library
Replies: 9
Views: 1258

Re: Installing Third Party C Library

Yea, it works and i can run the compiled demos. But I am then trying to make my own program that uses the same libraries but in a different location. #include <led-matrix.h> at the top of my new file doesn't compile because it doesn't know where it is. Do i need to copy the .h file to /usr/include/ ...
by Cole1717
Sun Mar 06, 2016 8:39 pm
Forum: C/C++
Topic: Installing Third Party C Library
Replies: 9
Views: 1258

Installing Third Party C Library

I am attempting to install the library for controlling a adafruit rgb matrix located here: https://github.com/hzeller/rpi-rgb-led-matrix . I am unfamiliar with how to install third party libs and the readme doesn't directly address it (i'm guessing it is common knowledge). When you write a c program...
by Cole1717
Thu Feb 18, 2016 8:39 pm
Forum: Graphics, sound and multimedia
Topic: Real-time FFT analysis
Replies: 3
Views: 2844

Re: Real-time FFT analysis

Thanks! It looks like I will need to become familiar with C.
by Cole1717
Thu Feb 18, 2016 4:46 pm
Forum: Graphics, sound and multimedia
Topic: Real-time FFT analysis
Replies: 3
Views: 2844

Real-time FFT analysis

I am trying to input audio into my soundcard, analyze it with a FFT (for a LED spectrum analyzer) and then output the audio through the soundcard in real time. Can anyone suggest software tools that can accomplish this? I am aware of gstreamer, but the python documentation is minimal or outdated. Do...
by Cole1717
Thu Sep 10, 2015 11:56 am
Forum: Graphics, sound and multimedia
Topic: How to get mic soundcard input to work.
Replies: 7
Views: 8272

Re: How to get mic soundcard input to work.

Sorry, I should have been clearer. I have a USB soundcard that I know is compatible with the pi plugged in. I have gotten the pi to default its output through the card, now I want to know how to read input from the card.

Thanks!
by Cole1717
Wed Sep 09, 2015 9:46 pm
Forum: Graphics, sound and multimedia
Topic: How to get mic soundcard input to work.
Replies: 7
Views: 8272

How to get mic soundcard input to work.

Does anyone know how to setup the soundcard so that i can connect music to it and read it from my pi?
by Cole1717
Mon Aug 31, 2015 7:30 pm
Forum: Graphics, sound and multimedia
Topic: Using both input and output of USB soundcard
Replies: 0
Views: 308

Using both input and output of USB soundcard

I have succesfully made my USB soundcard the default output option and it works well. I am now wondering how to play music from my phone into the mic input of the soundcard and then output the music through the soundcard's output. After i figure that out, the goal is to analyze the music and hopeful...
by Cole1717
Tue Aug 25, 2015 10:43 pm
Forum: Graphics, sound and multimedia
Topic: USB Sound not working
Replies: 9
Views: 2303

Re: USB Sound not working

I'm having the exact same issue but that didn't work. I was already an added user.
by Cole1717
Wed Jun 24, 2015 8:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 8x8 matrix with 1 MCP23017
Replies: 6
Views: 1810

Re: 8x8 matrix with 1 MCP23017

Very cool. I plan on buying one of the Adafruit RGB LED matrices because they look awesome. I am more curious of the limitations of I2C and its possible applications. Is it correct to say that SPI is great for when you have one or two "slaves", but I2C excels at having more because of the way it com...
by Cole1717
Mon Jun 22, 2015 8:57 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 8x8 matrix with 1 MCP23017
Replies: 6
Views: 1810

8x8 matrix with 1 MCP23017

Is it possible to setup an 8x8 matrix using 1 16 IO port expander via I2C? Could you use the left 8 ports for the columns and the right 8 ports for the rows? is I2C fast enough to update 64 LEDs reliably?

Thanks.
by Cole1717
Fri Jun 19, 2015 4:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Lighting up 5 LEDs with I2C or SPI
Replies: 5
Views: 790

Re: Lighting up 5 LEDs with I2C or SPI

Thank you so much! I love these forums. I'll order some and try them out.
by Cole1717
Thu Jun 18, 2015 11:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Lighting up 5 LEDs with I2C or SPI
Replies: 5
Views: 790

Lighting up 5 LEDs with I2C or SPI

I would like to be able to have say 5 LEDs that I can toggle each on individually. For example, I would like to tell it to turn on the first three or every other one on, but keep the other ones off. I don't want it to be limited by the number of output pins I have on my pi 2, so I am guessing the be...
by Cole1717
Thu Jun 04, 2015 12:40 pm
Forum: Troubleshooting
Topic: Python GPIO does not work on Raspberry Pi 2
Replies: 30
Views: 22151

Re: Python GPIO does not work on Raspberry Pi 2

When i booted the pi for the first time, i went through all the settings just to see what was there. I think it was disabled, or maybe I read somewhere that you don't need it.
by Cole1717
Tue Apr 21, 2015 10:44 pm
Forum: Troubleshooting
Topic: Python GPIO does not work on Raspberry Pi 2
Replies: 30
Views: 22151

Re: Python GPIO does not work on Raspberry Pi 2

That worked! thank you so much. Enabled the device tree, rebooted and ran the script and it worked.

Good work team.
by Cole1717
Wed Apr 08, 2015 12:02 pm
Forum: Troubleshooting
Topic: Python GPIO does not work on Raspberry Pi 2
Replies: 30
Views: 22151

Re: Python GPIO does not work on Raspberry Pi 2

I'm fairly certain I left that disabled because I didn't know what it was. What is it exactly? I'll definitely try enabling it.
by Cole1717
Wed Apr 08, 2015 11:40 am
Forum: Troubleshooting
Topic: Python GPIO does not work on Raspberry Pi 2
Replies: 30
Views: 22151

Re: Python GPIO does not work on Raspberry Pi 2

That's very strange. I'll try that again when I get the chance. If it doesn't work, do you think re-installing the OS and everything could be worth a try?
by Cole1717
Tue Apr 07, 2015 10:07 pm
Forum: Troubleshooting
Topic: Python GPIO does not work on Raspberry Pi 2
Replies: 30
Views: 22151

Re: Python GPIO does not work on Raspberry Pi 2

Sorry, I am usually at work when I post. Here is my code that i execute via:

Code: Select all

sudo python led.py

Code: Select all

import os
import time
import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BOARD)
GPIO.setup(38, GPIO.OUT)

try:
     while True:
              GPIO.output(38, GPIO.HIGH)
except:
     GPIO.cleanup()

by Cole1717
Mon Apr 06, 2015 5:18 pm
Forum: Troubleshooting
Topic: Python GPIO does not work on Raspberry Pi 2
Replies: 30
Views: 22151

Re: Python GPIO does not work on Raspberry Pi 2

I installed wiringPi. Ran my simple script and did "gpio readall" while the script was running. The pin isn't changing to output mode, it is staying in input mode with V = 0. Is there an explanation for this?
by Cole1717
Mon Mar 30, 2015 10:10 pm
Forum: Troubleshooting
Topic: Python GPIO does not work on Raspberry Pi 2
Replies: 30
Views: 22151

Re: Python GPIO does not work on Raspberry Pi 2

I tried doing what you said @DougieLawson, but it didn't work. it says: ./b.py:5: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. g.setup(17, g.OUT) Also, "gpio readall" from the terminal is saying "bash: gpio: command not found" .....
by Cole1717
Tue Mar 24, 2015 11:54 am
Forum: Troubleshooting
Topic: Python GPIO does not work on Raspberry Pi 2
Replies: 30
Views: 22151

Re: Python GPIO does not work on Raspberry Pi 2

That explains it. I don't know why I didn't realize that's what slmaws meant. I'll let you know what it says when I get home from work. I still haven't been able to get python to set a pin high yet.

Go to advanced search