Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Raspberry Pi related support

Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby dom_france » 19 Feb 2018, 23:17

Hello,

First, I would like to thank you for this update version (this image) :
RuneAudio_rpi2_rp3_0.4-beta_20170229_2GB.img.gz

I tried it this week end, because, I would like to automatically play a playlist with MPC and a service when my Raspberri switch on, and with this image, OK for me.

After, I transfer a python script (name shutdown.pi) to switch off my rasperry pi 3, OK, very good too, my solution is OK.

Now, I would like to add a display, with I2C protocole, like LCD I2C 2004 20x4, and I need your help, because I can not start the order "i2cdetect -y 1" to scrut my electronic editing.

Thank you per Advance

Dom (from France)

RQ : sorry for my english, I'm french...

My question :
Raspberry Pi 3 + RuneAudio_rpi2_rp3_0.4-beta_20170229_2GB.img.gz + display LCD with I2C : how to do ?

Bye Bye
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby hondagx35 » 20 Feb 2018, 00:10

Hi Dom,

what is your exact problem?

To get I2C working you have to enable it in "/boot/config.txt" first
Code: Select all
    dtparam=i2c1=on
    dtparam=i2c_arm=on


Next you have to install I2C-Tools :
Code: Select all
pacman -S i2c-tools


And check this
http://www.runeaudio.com/forum/lcd-display-and-buttons-in-python-tutorial-and-code-t1191.html?hilit=i2c%20display

Frank


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby dom_france » 20 Feb 2018, 19:22

Hi Frank,

thank you for your answer.

First, I change my system file "/boot/config.txt" with "nano" and I added this :

Code: Select all
dtparam=i2c1=on
dtparam=i2c_arm=on



install I2c-tools OK for me, like this :

Image

And check this


Now, I'm going to read this post :
lcd-display-and-buttons-in-python-tutorial-and-code-t1191.html?hilit=i2c%20display


and in the coming days, I'll come back to you if I have problems

thank you....

Bye
DOM from France
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby dom_france » 20 Feb 2018, 20:25

After install "i2c-tools" with pacman -S

I try this command to scrut my "I2C network", but without success :
Code: Select all
i2cdetect -y 1


I have this error :

Code: Select all
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory


here is my screenshot :
Image

why ?

in /dev directory, I don't see any module with "i2c"...
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby dom_france » 21 Feb 2018, 21:58

Hello everybody,

today, I try to install "gcc" (because Adafruit library need gcc) but without success : no space enough on my system :

Image

it's strange because my SD card is a 16GB... only 2GB for system...

Can someone help me step by step for the establishment of my display?

Thank you...

DOM



I use this version : RuneAudio_rpi2_rp3_0.4-beta_20170229_2GB.img.gz
because I wanted these 5 points:

1) autoplay at startup (on usbkey with lots of music folder
2) GPIO management OK
3) button shutdown (electric)
4) random reading at startup
5) I2C display

my last point (5) is difficult for me, please help me...

Bye
Last edited by dom_france on 21 Feb 2018, 22:51, edited 1 time in total.
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby hondagx35 » 21 Feb 2018, 22:14

Hi Dom,

it's strange because my SD card is a 16GB... only 2GB for system...

This is normal, you have to expand your file system:
Code: Select all
fdisk /dev/mmcblk0

Delete the second partition /dev/mmcblk0p2
d
2

Create a new primary partition and use default sizes prompted. This will then create a partiton that fills the disk
n
p
2
enter
enter

Save and exit fdisk:
w


Now reboot. Once rebooted:
resize2fs /dev/mmcblk0p2


Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby dom_france » 21 Feb 2018, 22:40

Hi Frank,

OK, My computer's software is LINUXMINT,
I use Gparted, and now, gcc is OK on my raspberry...

Image


and space OK on my SD:

Image

and now ?

I2C-tools ok, but ii2cdetect -y 1 no work....

see you later...

Bye

thank you
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby dom_france » 22 Feb 2018, 18:42

Hi,

in this forum how-to-enable-i2c-t1287.html, I see this :


3) Open /etc/modules-load.d/raspberrypi.conf with:

nano /etc/modules-load.d/raspberrypi.conf

And add this at the end:

i2c-bcm2708
i2c-dev

But I don't have a file name "raspberrypi.conf in /etc/modules-load.d...

?

My Raspberry is a raspberry pi 3 Model B.

A+++
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby dom_france » 22 Feb 2018, 20:57

Tonight I try this with success, but I'm no sure :

I make a new file in /etc/modules-load.d with this name : i2c.conf

I edited this file with "nano /etc/modules-load.d/i2c.conf" and I put this (and only this) : i2c-dev

I save and quit this file.

Then, i type this : modprobe i2c-dev

and finally, i2cdetect -y 1 ok :

Image

but I'm no sure...

is it normal that I have the past by creating a file in /etc/modules-load.d ?
Last edited by dom_france on 22 Feb 2018, 21:01, edited 1 time in total.
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

Re: Rasperri Pi + Runeaudio + LCD I2C 2004 20x4

Postby dom_france » 22 Feb 2018, 21:00

WIth this order "lsmod | grep i2c", I get this :

Image

... Normal ?

OK or NOT OK ?
User avatar
dom_france
 
Posts: 35
Joined: 28 Jan 2018, 07:54

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: Google [Bot] and 6 guests