You may ask what exactly do you use the LCD models....any links ?
Not all models that use the driver HD44780 work correctly !.......(RaspberyPi / Arduino)
I failed to run 2x16 LCD .... :-(
Maybe another potentiometer ? ...
I think you need to know exactly entries for used LCD ??? :
LCD_LINE_1 = 0x80 # LCD RAM address for the 1st line
LCD_LINE_2 = 0xC0 # LCD RAM address for the 2nd line
The second remote controller that works properly
this: medion x10 .....remote control works with a dedicated sensor !... but
on another system ( beta ).....Armbian-5.25-Orangepilite-Ubuntu-xenial-3.4.113-desktop : Ubuntu-xenial-3.4.113-desktop
start-up procedure is simple:
apt-get install lirc
# reconfigure lirc
sudo dpkg-reconfigure lirc
Remote control configuration: ATI/NVidia/X10 RF Remote (userspace)
IR transmitter, if present: None !!! ....enter
configuration file lircd.conf
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.3(default) on Sat Apr 23 13:45:36 2011
USB Sound Card (lsusb) : Bus 001 Device 004: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller I ran up to two remotes simultaneously with the program mpc mpd ( internetradio ) .... For two remote controls configuration in the lircd.conf file:
#Configuration for the ATI/NVidia/X10 RF Remote (userspace) remote / OrigenAE RC153 :
include "/etc/lirc/lircd.conf.atilibusb"
include "/etc/lirc/lircd.conf.origenae"
Copy code
my hardware.conf
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="ATI/NVidia/X10 RF Remote (userspace)"
REMOTE_MODULES=""
REMOTE_DRIVER="atilibusb"
REMOTE_DEVICE=""
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atilibusb"
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES="sunxi_cir"
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE="/dev/lirc0"
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Disable kernel support.
#Typically, lirc will disable in-kernel support for ir devices in order to
#handle them internally. Set to false to prevent lirc from disabling this
#in-kernel support.
#DISABLE_KERNEL_SUPPORT="true"
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF=""
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
DEVICE="/dev/lirc0"
MODULES="sunxi-cir"
Copy code
This remote is not Infra Red but radio ! remote control + sensor operates through a wall :-)
This thread contains more resources
You need to Log in to download or view,No account?
Register
I present you new version of my radio python code.
Now it is possible to play mp3 from internal memory or USB and internet radio of course
- on USB - folders with music on pendrives root folder (Fat32)
- folders with music should be in: /media/mp3
- internet radio playlist should be: /media/radio.pls
Of course you have to modify /etc/mpd.conf:
- change line: "music_directory "/media""
In attached file is second version of the same program but for LCD connected thrue I2C and buttons on another pins 36, 38 and 40.
This thread contains more resources
You need to Log in to download or view,No account?
Register
@mswiniuch ....Thank you !!! for your python software for internet radio
Ps. How to use the entry to turn off the internet radio / mpc stop
The LCD screen was just a clock ...?......................................................................
I did'nt implement stopping radio. You can only play/pause or reload by buttons from menu. Clock is newer shown.
I never stop radio - just power off ;)
Little success .... new screen with date and time
Configuration for LCD 2x40
I found a cool program : mpdalarm / homepage : mpdalarmI insert slightly modified Installation is simple:
We unpack and copy the mpdalarm-0.1 folder, eg to ...../root (And commands)
chmod +x mpdalarm-0.1
cd mpdalarm-0.1
apt-get install bc at docbook-to-man
make
make install
Copy code
Can be used as an alarm clock radio. Increasing or decreasing the intensity of the sound from the radio or mp3 file to a certain level.Example:
mpdalarm -s 1 0
Copy code
1 - minutes to run : mpdfadeout ( mpdfadeout : program for percentage mute the volume of the sound)
0 - mute to volume 0%
Finally, the mpc goes to the pause option
mpdalarm -i 100 0935
Copy code
100 - % volume
0935 - 9:35 am ... ( 1345 - 13:45 ..e.t.c ) the clock time that the mpdfadein program will run ...program mpc play :-)more information
mpdalarm --help
Copy code
View running tasks of the program mpdalarm :
atq
Copy code
job 7 at Sun Apr 9 09:35:00 2017
Delete tasks:
atrm 7
more information:
at --help
This thread contains more resources
You need to Log in to download or view,No account?
Register