Go to advanced search

by pmc
Sun Dec 20, 2015 10:44 pm
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

Other methods would be using the usb ports for the devices. SDR being the fm radio and more... same for the Tx. Then, I would only need to get the amp hooked into the i2c1. Want to keep some usb ports open for other devices... flash drive, memory stick etc.

Thanks for the reply.
by pmc
Sun Dec 20, 2015 12:01 pm
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

I should add for info purposes... my intent is to have a Pi2 Touch inside a 15 year old car that currently has an FM `cassette player'... seen any of these lately LOL.. If the touch screen hogs things, then I have the option of having another Pi to run the specific device, and then I need the I/O fo...
by pmc
Sun Dec 20, 2015 11:38 am
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

Thanks for the reply... the pinouts are confusing across models. I am using different images. Have an FM Tx, and it has the same issues. If and when I get this resolved, I will update this.
by pmc
Sun Dec 20, 2015 6:22 am
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

I pasted the wrong text, and wanted to know if these values are correct for making the blob... obtained from e-linux.

[email protected]_SDA {
type = "internal";
number = <2>;
};
[email protected]_SCL {
type = "internal";
number = <3>;
by pmc
Sun Dec 20, 2015 5:41 am
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

In the file dt-blob.dts, there is a pin_config, [email protected] that is set to use i2c1. [email protected] { function = "i2c1"; termination = "pull_up"; }; // I2C 1 SDA [email protected] { function = "i2c1"; termination = "pull_up"; }; // I2C 1 SCL and the pin defines [email protected]_SDA { type = "internal"; number = <2>;...
by pmc
Fri Dec 18, 2015 4:34 am
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

My depth on this is not as great as yours, appreciate this in the question. Is it possible to map the amp SDA/SDL to other ports on the Pi... or create a pathway in the device tree to see the SDA/SDL. ie: a similated device attaches to a real device in i2c ? Am trying to understand the direction of ...
by pmc
Fri Dec 18, 2015 1:55 am
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

After tracing my steps, i2cdetect is finding the amp again. I turned off the device tree to make it re-appear. Again, to use the Pi touch screen, I need the device tree up. Will work on it :) Thanks to Joan for the summary of settings in another message. https://www.raspberrypi.org/forums/viewtopic....
by pmc
Thu Dec 17, 2015 11:24 pm
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

To ease the trial and error I installed VNC server so that I could remotely access the Pi with the touch screen. Yes it was a typo, and I did remove it... when the setting stays in modules, then i2cdetect complains it can't find /dev/i2c-1 file. Am thinking I should reboot the Pi twice when I change...
by pmc
Thu Dec 17, 2015 8:42 pm
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

I use: pin 1 to power the screen, and pin 6 for its ground pin 3 to power 5v to the amp vi2c pin and pin 9 for its ground. The Pi2 will not boot when the logic is 3.3 volts. It sits with both led's on. The SCA1 and SCL1 are pins 3 & 5 to the amp's pins of the same. There is nothing blacklisted In mo...
by pmc
Thu Dec 17, 2015 5:29 pm
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Re: Pi touch i2c and device tree

Thanks for the response. Two different Pi's, model B and Pi2. Tried both with different SD cards. MAX9744, this one https://www.adafruit.com/products/1752 Have tried with Wheezy and Jessie. Done all the upgrades. Tried RPI-update too. and that sent the mouse cursor flying everywhere, but where I wan...
by pmc
Thu Dec 17, 2015 1:49 am
Forum: Official Foundation Display
Topic: Pi touch i2c and device tree
Replies: 18
Views: 3150

Pi touch i2c and device tree

Have the Pi touch screen and an Adafruit audio amplifier. When all is set for i2c, and no device tree, then i2cdetect displays the device value of the amplifier, however the touch screen stops working, because there is no device tree loaded. When I enable the device tree, then the i2cdetect can't fi...
by pmc
Sat Oct 18, 2014 5:12 pm
Forum: C/C++
Topic: GLib-GObject-WARNING
Replies: 6
Views: 8112

Re: GLib-GObject-WARNING

I can't link any `g_module' procedures in the latest. The error says they can't be found. It always linked previously etc.

`g_module_errror' and `g_module_close' being examples of the procedure calls. Anyone run into the same ?
by pmc
Wed Oct 15, 2014 7:14 pm
Forum: C/C++
Topic: GLib-GObject-WARNING
Replies: 6
Views: 8112

Re: GLib-GObject-WARNING

I get the same on my Pi. I have another issue with the same upgrade of the libraries for `g_module'. The library procedures seem to have disappeared or been moved. I can't compile the software anymore etc. It all works fine on my regular debian desktop. One more thing, the procedure call g_thread_cr...
by pmc
Sun Dec 22, 2013 8:47 pm
Forum: Troubleshooting
Topic: external usb hdd and samba
Replies: 2
Views: 948

Re: external usb hdd and samba

Below is the drop box setting I have on the Pi and it is open to all for read and write

[datashare]
comment = Pi DropBox
available = yes
read only = no
path = /datashare
guest ok = yes

Btw, if you have not installed winbind then do so. Have your lmhosts in the samba folder
by pmc
Sun Dec 22, 2013 8:20 pm
Forum: Troubleshooting
Topic: external usb hdd and samba
Replies: 2
Views: 948

Re: external usb hdd and samba

It should be guest only = no You have it to complicated...add the above and try removing valid users = @audio force group = audio Make a folder that is read/write to guests then when that works, add your audio group to see how it gets impacted. To check the settings use testparm in a command window,...
by pmc
Fri Dec 20, 2013 7:43 pm
Forum: Troubleshooting
Topic: Unable to set static IP
Replies: 17
Views: 4173

Re: Unable to set static IP

Keep the broadcast and network statements. Why? They don't really do anything. They are legacy code. You answered your own question... I actually believe this fellow lost the `auto eth0' statement in the interfaces file because he is trying to use an IP that is already assigned to another device. T...
by pmc
Fri Dec 20, 2013 8:49 am
Forum: Troubleshooting
Topic: Unable to set static IP
Replies: 17
Views: 4173

Re: Unable to set static IP

You are missing the auto eth0 before the iface statement Keep the broadcast and network statements. You also need to have a dns IP address like this if you want to use the google dns or your isp's etc. dns-nameserver 8.8.8.8 if you have a domain name then add this dns-search domainname.com dns-domai...
by pmc
Fri Nov 29, 2013 9:44 pm
Forum: General discussion
Topic: GPIO timeout
Replies: 6
Views: 2809

Re: GPIO timeout

You have not displayed any code, so I will also suggest that you use the sleep() command in a double loop, if you are programming in C.
by pmc
Thu Oct 24, 2013 12:30 am
Forum: Beginners
Topic: rpi-update command
Replies: 9
Views: 117016

Re: rpi-update command

As a newbee you haven't read into what was stated above.

You can use either rpi-update, or apt-get upgrade.

Use apt-get update first, followed by apt-get upgrade.

apt-get has other parameters including remove. See the manual for the command parameters etc.
by pmc
Mon Sep 02, 2013 8:09 pm
Forum: Raspbian
Topic: Raspbian static IP
Replies: 2
Views: 1797

Re: Raspbian static IP

There is a file called resolv.conf and in it there should be domain mydomain search mydomain nameserver 192.168.1.1 where the name server IP is real. Read this file after it boots to see if it has the real DNS ip address. This file is created or recreated on boot. Below is a sample interfaces file. ...
by pmc
Sat Jul 06, 2013 11:07 pm
Forum: General discussion
Topic: Looking for an easy to use relay board
Replies: 13
Views: 18975

Re: Looking for an easy to use relay board

Check this out... http://wiringpi.com/dev-lib/piface/

It comes assembled with source software downloaded from the site http://pi.cs.man.ac.uk/interface.htm

Any good electronic shop would get/have it.
by pmc
Fri Jun 28, 2013 7:32 am
Forum: Beginners
Topic: X kills DNS?
Replies: 6
Views: 940

Re: X kills DNS?

Reboot the Pi and then read the syslog. The DHCP details should be near/at the bottom of the log. There should also be info on eth0 being found and if up or down. Use the NetStat in the net tools to see the routing info, and the existing active network services. Try pinging the assigned IP address f...
by pmc
Fri Jun 28, 2013 3:27 am
Forum: Graphics programming
Topic: GTK+ Toolkit?
Replies: 23
Views: 14440

Re: GTK+ Toolkit?

You need to install the gtk libraries

apt-get install libgtk2.0 devhelp

will actually setup version 3 and the `devhelp' is the docs for all that can be done and more.
by pmc
Fri Jun 28, 2013 3:16 am
Forum: C/C++
Topic: GTK for GUI on Raspberry Pi
Replies: 13
Views: 10207

Re: GTK for GUI on Raspberry Pi

I would go along with the topguy advice of the libraries missing.

GTK runs great on the Pi device. I have several C language based applications that run, including threads.
by pmc
Fri Jun 28, 2013 3:06 am
Forum: Beginners
Topic: X kills DNS?
Replies: 6
Views: 940

Re: X kills DNS?

What other software have your tried, that uses the network...dns ?

Are you running a log file or used dmsg... the details of the dhcp and dns should be in it

apt-get install gnome-system-log

apt-get install gnome-nettool

will give you several things to use and see about the network... whois etc.

Go to advanced search