Go to advanced search

by SpazzTechTom
Wed Aug 12, 2015 3:08 am
Forum: Graphics programming
Topic: Can't link to GTK libraries
Replies: 8
Views: 6256

Can't link to GTK libraries

Hello everyone, I had what seemed like a strange issue with gcc not being able to find the gtk libraries, but solved it. I thought I would share what I found. I had gtk.h installed at /usr/include/gtk-3.0/gtk/. I definitely had dev version. In my program i had: #include <gtk-3.0/gtk/gtk.h> In my bui...
by SpazzTechTom
Sat May 02, 2015 2:01 pm
Forum: Beginners
Topic: Recommendations For Young Beginners
Replies: 7
Views: 1041

Re: Recommendations For Young Beginners

I looked at the reviews on amazon and a lot of people complained about the fit of the case, quality of the ac adapter, and the wireless adapter. I was almost turned off by the "it doesn't fit" comments. Note I said if fit "perfectly" in my review. That means there is no slop, and you have to assemb...
by SpazzTechTom
Sat May 02, 2015 12:25 am
Forum: Beginners
Topic: Recommendations For Young Beginners
Replies: 7
Views: 1041

Re: Recommendations For Young Beginners

Monkinator, I personally liked the CanaKit Ultimate Starter pack for the RPi B+. I even write a review here: http://www.spazztech.com/canakit-rpi-ultimate-kit-review.html I have not seen one for the RPi 2 in person. It makes sense to get an RPi 2 though. For OS, its probably best to start out with N...
by SpazzTechTom
Fri May 01, 2015 11:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI with bcm2835 library on RPi 2
Replies: 7
Views: 3939

Re: SPI with bcm2835 library on RPi 2

I just wanted to post what I found was causing my problem. I was just about to give up, but decided to try one more time from scratch. To my surprise it worked on the first try with no errors. That has happened to me before, but in this case I can not figure out what was happening exactly. The error...
by SpazzTechTom
Mon Apr 06, 2015 1:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI with bcm2835 library on RPi 2
Replies: 7
Views: 3939

Re: SPI with bcm2835 library on RPi 2

I found the issue. The bcm2835 library failed to map the register addresses for the peripherals. On lines 45 and 49 - 56 I am seeing "MAP_FAILED" instead of a register address. BTW, I downloaded and tried using SPI with wiringPi and the spiSpeed.c example worked out of the box. I'm tempted to just u...
by SpazzTechTom
Sun Apr 05, 2015 11:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI with bcm2835 library on RPi 2
Replies: 7
Views: 3939

Re: SPI with bcm2835 library on RPi 2

All the libraries which access the gpios at a low-level needed to be updated for the Pi2. Make sure you are using the latest version. I am running the latest version of Rasbian just downloaded and installed today and the latest version of the bcm2835 library (1.44). My program is still exiting with...
by SpazzTechTom
Fri Apr 03, 2015 8:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI with bcm2835 library on RPi 2
Replies: 7
Views: 3939

SPI with bcm2835 library on RPi 2

Sorry if this is a repeat. A search did not uncover an answer for me. Has anyone used successfully used SPI with the bcm2835 library with the RPi 2 yet? My program is exiting from the bcm2835_spi_begin() function with code 139. I have not found anything in the bcm2835.c or bcm2835.h code that would ...
by SpazzTechTom
Sat Feb 07, 2015 1:31 am
Forum: General discussion
Topic: GPIO details and PNP transistors
Replies: 3
Views: 1939

Re: GPIO details and PNP transistors

Hi, I'm working on a project and the raspberry pi will be interfacing with NPN and PNP transistors. Anyway, it's important for me to know how the GPIO pins in the Pi work. I understand that when they are set to HIGH 3.3V is connected to them. However, I'm confused as to what happens when they are s...
by SpazzTechTom
Mon Feb 02, 2015 4:03 am
Forum: General discussion
Topic: Raspberry Pi 2
Replies: 161
Views: 28388

Re: Raspberry Pi 2

Here is another link with it for sale from Australia. It's well into Monday in Australia right now.

http://raspberry.piaustralia.com.au/pro ... -2-model-b
by SpazzTechTom
Mon Feb 02, 2015 3:38 am
Forum: Beginners
Topic: Game programming, some questions on direction to go.
Replies: 3
Views: 658

Re: Game programming, some questions on direction to go.

I was wondering the same thing myself a while back. Although I was trying to decide between C and Python. I have played with C, C++, Java, C#, Python, and Objective-C. I have to admit I like Java, but its hard to beat C for pure performance. Since performance could be an issue on the Pi as you point...
by SpazzTechTom
Mon Feb 02, 2015 3:13 am
Forum: Troubleshooting
Topic: Relay is off when GPIO is set to high(True) and vice versa
Replies: 9
Views: 2255

Re: Relay is off when GPIO is set to high(True) and vice ver

@DougieLawson thank you for the reply.. I reversed the logic of the python code and seems well but i think there is some problem with the relay still...even when the Raspberry Pi is turned off and the bulb connected relay is still plugged to the wall, the bulb seems to be on i.e. the relay is still...
by SpazzTechTom
Sun Feb 01, 2015 6:17 pm
Forum: Off topic discussion
Topic: which soldering iron?
Replies: 2
Views: 619

Re: which soldering iron?

I've just spent over an hour in a freezing shed trying to get a solderpro 120 butane soldering iron to light and get hot enough to solder a switch onto a bit of wire. I gave up after my wife accused me of making her into a shed widow and threatened to ground me. :shock: So, can anyone recommend a g...
by SpazzTechTom
Sun Feb 01, 2015 5:03 am
Forum: C/C++
Topic: GPIO Programming and Interrupts
Replies: 64
Views: 33238

Re: GPIO Programming and Interrupts

I'd still use a separate controller for a balancing robot I've been thinking the same thing for my own projects. I like the idea of using the RPi for a user and communications interface for a robotics project, but using a something else for the real time work like reading sensors and controlling se...
by SpazzTechTom
Sat Jan 31, 2015 10:11 pm
Forum: C/C++
Topic: Button Detection Using WiringPi in C
Replies: 2
Views: 1521

Re: Button Detection Using WiringPi in C

I didn't look through the entire code, but it seems like you are using a polling method to detect when a button is pressed. This can be unreliable unless you have very little else happening in the same loop of the program. It appears to me like it could be that you just have too much else happening ...
by SpazzTechTom
Sat Jan 31, 2015 2:24 am
Forum: Automation, sensing and robotics
Topic: Capacitors
Replies: 6
Views: 1940

Re: Capacitors

A capacitor is an energy storage device that blocks instantaneous changes in potential between the two points it is attached to. More simply put, it slows down changes in voltage. This is useful to remove unwanted ripple (noise) in voltage at the point it is attached to. So if you think you need to ...

Go to advanced search