{"id":403,"date":"2021-05-16T10:42:46","date_gmt":"2021-05-16T16:42:46","guid":{"rendered":"https:\/\/www.fayearchip.name\/?p=403"},"modified":"2021-09-17T13:27:26","modified_gmt":"2021-09-17T19:27:26","slug":"i2c-adafruit-16x2-lcd-pi-plate","status":"publish","type":"post","link":"https:\/\/www.fayebell.name\/?p=403","title":{"rendered":"I2C Adafruit 16&#215;2 LCD Pi Plate"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi y&#8217;all, <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today I am going to write up a project I am working on. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Problem: I have a USB headphones with cat ears. The Mixers only output analog. Also Needs to be headless.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Solution: Use a ADC and pulseaudio to convert it to a signal that the USB headphones can use. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I used a Raspberry pi, a LCD board and a Behringer UCA222<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The UCA222  converts the analog signal to digital. then I am using pacat from pulseaudio to receive it then a pipe to send it to the headphones via pacat.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now for the headless part I am using the Adafruit 16&#215;2 and button board to control the system. The system is controlled through a python3 program, that reads the buttons and does what is needed based off input.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Currently I am having a issue of getting the script to start on boot. when it is called via crontab the system calls do not work, Looks like I get to deep dive that call.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8212;-Update &#8212;- <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To get the script to work, I had to start up pulseaudio daemon. It appears that the daemon is started on login. since I am starting my program via crontab&#8230;.<br>I had to build a quick bash script to spawn it and then kick off my python program.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi y&#8217;all, Today I am going to write up a project I am working on. Problem: I have a USB headphones with cat ears. The Mixers only output analog. Also Needs to be headless. Solution: Use a ADC and pulseaudio &hellip; <a href=\"https:\/\/www.fayebell.name\/?p=403\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-403","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pa1ntP-6v","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fayebell.name\/index.php?rest_route=\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fayebell.name\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fayebell.name\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fayebell.name\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fayebell.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=403"}],"version-history":[{"count":3,"href":"https:\/\/www.fayebell.name\/index.php?rest_route=\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/www.fayebell.name\/index.php?rest_route=\/wp\/v2\/posts\/403\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/www.fayebell.name\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fayebell.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fayebell.name\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}