My IR blaster is built on a LeoStick which is an arduino compatible USB stick. I must be a sucker for punishment because I thought it would be easy to make one of the many IR libraries work on here and control my Samsung TV.
There were two problems with my plan. First, the defacto IR libraries don't allow me to use the necessary IO pins and second, Samsung IR codes are not supported.
Rather than detail what when wrong, I will present my solutions.
The first problem arises because the LeoStick has a green LED attached to Digital IO pin 9 which is the default PWM Timer used by Ken Shirriff's IR library. The solution is an updated fork of this library Chris Young which implements more Timer chips and enables selecting Digital IO pin 5. Do to that, edit IRLibTimer.h and find the section with the heading 'it's probably Leonardo' (the LeoStick is apparently compatible with the Leonardo). Comment out the default #define and uncomment the IR_USE_TIMER3. (I wonder why we can't select this at run time?). Based on the IRLib manual, I also installed my IR LED with whatever resistors I had on hand (470 ohm I think).
So, thanks to the hard work of these guys, I have got my LED working. Now, to make it talk Samsung protocol.
There were a few snippits of code in various forums but I had to piece that together into the format for IRLib. I have only added sending as I already have a list of codes from SamyGO and LIRC. The only code I wanted to use is TV_POWER 0xE0E040BF because once the TV is on, I can talk to it via the network.
I have submitted my changes as a GitHub pull request. If they are not accepted in the upstream library you can find them here https://github.com/jnewbigin/IRLib
The final piece to the puzzle is making the IR code send when I want it to. To keep this generic, I made my sketch read a hexadecimal code from the serial port. When it receives a code it just send it, thus allowing control over the time and the code. This could probably be integrated with LIRC but I am just using a simple shell command
echo 0xE0E040BF > /dev/ttyACM0
So here is my sketch. There is not much error detection in the serial reading but what is the worst that can go wrong?
/* Example program for from IRLib – an Arduino library for infrared encoding and decoding
* Version 1.3 January 2014
* Copyright 2014 by Chris Young http://cyborg5.com
* Based on original example sketch for IRremote library
* Version 0.11 September, 2009
* Copyright 2009 Ken Shirriff
* http://www.righto.com/
*
* Modified by John Newbigin to support Samsung and USB control May 2014
*/
#include <IRLib.h>
IRsend My_Sender;
void setup()
{
Serial.begin(9600);
}
void p(char *fmt, ... ){
char buf[128]; // resulting string limited to 128 chars
va_list args;
va_start (args, fmt );
vsnprintf(buf, 128, fmt, args);
va_end (args);
Serial.print(buf);
}
// 0xE0E040BF = Power
void sendCode(unsigned long code)
{
p("Sending SAMSUNG 0x%08lx\n", code);
for (int i = 0; i < 3; i++)
{
My_Sender.send(SAMSUNG, code, 0);
delay(30);
}
}
unsigned long ir_code = 0;
void loop() {
while(Serial.available() <= 0)
{
delay(10);
}
int incomingByte = Serial.read();
int nibble = -1;
if(incomingByte == 10)
{
p("Got newline\n");
sendCode(ir_code);
ir_code = 0;
}
else if(incomingByte == 13)
{
// ignore
}
else if(incomingByte >= '0' && incomingByte <= '9')
{
nibble = incomingByte - '0';
p("Got digit %d\n", nibble);
}
else if(incomingByte >= 'a' && incomingByte <= 'f')
{
nibble = incomingByte - 'a' + 10;
p("Got hex digit %d\n", nibble);
}
else if(incomingByte >= 'A' && incomingByte <= 'F')
{
nibble = incomingByte - 'A' + 10;
p("Got hex digit %d\n", nibble);
}
else if(incomingByte = 'x')
{
p("Starting number\n");
ir_code = 0;
}
else
{
p("Got %d\n", incomingByte);
}
if(nibble >= 0)
{
ir_code<<= 4;
ir_code+= nibble;
p("Code is 0x%08lx\n", ir_code);
}
}
Thank you for your sharing. Thanks to this article I can learn more things. Expand your knowledge and abilities. Actually the article is very practical gmail login
ReplyDeletegreat post. i like it. feeling great when reading your post
ReplyDeleteMutilate A Doll 2
Very helpful advice in this particular post! It’s the little changes that make the largest changes. Thanks for sharing!
ReplyDeletevex 3
We at Unique Submission. We have our ability in each type of Online Assignment Help which Includes Dissertation Writing,
DeleteEssay Writing, Assignment composing, Research Proposal Writing, Admission essay composing, Coursework composing and many more.
Assignment Helpers Online
Really i am getting inspired and i hope you will be awesome activity you have! but i want to learn this i am using Mass Texting and i have to get many learn and received activities messages you must to check it’s very helpful service and this is really informative blog well sharing more and keep it up your success
ReplyDeleteI think this webpage is a standout amongst the best I have seen so far on the web. You examine probably the most recent technique on split testing in a compelling way. The article is talked about in a brilliant way and I am happy that it has helped me to such an extent. Now every things are colorful because colorful thing always attract user and Color is also a key element in custom logo design and plays an important role in brand identification. design colorful and meaningful logos by world best designers.
ReplyDeleteThis was an awesome article! If you want to know the History and Facts of Tarot Cards, please refer yourtarotlife.com.
ReplyDelete
ReplyDeleteI like your article very much, thanks for sharing the good information we have read.
hotmail login email
gmail sign up
Along these lines, you are an administration worker AND a Linux nerd. Join the club. best cleaning companies in dubai It is conceivable to utilize your savvy card to get to DOD CAC Card empowered destinations.
ReplyDeleteSpectrum Internet offers amazing deals on its service, no matter what speed you require. According to speedtest.net, they deliver the fastest internet in the US. Plus, they delivery these internet speeds at affordable prices along with providers all across the US which you can search based on your location.
ReplyDeleteSpeedily this excellent website may possibly without doubt always be well-known amidst virtually all blogs folks, to the thoughtful articles or blog posts or maybe testimonials. VIn number
ReplyDeleteI really treasure your piece of work, Great post. Oscar Awards 2020
ReplyDeleteI simply wanted to thank you a lot more for your amazing website you have developed here. allegheny county real estate It can be full of useful tips for those who are actually interested in this specific subject, primarily this very post.
ReplyDeleteYou know your projects stand out of the herd. There is something special about them. Room addition
ReplyDeleteSometimes it is on top of that an awesome posting garage repair
ReplyDeleteI liked your blog and the detailing you have provided about IR blaster, Can I share it on Geek Squad tech support
ReplyDeleteI would love to use some experts of this for a report I am doing I hope that would be okay. Eyal Nachum
ReplyDeletefury vs wilder 2 live stream online
ReplyDeletekhabib vs tony live stream online
Oscars 2020 live stream online
Wrestlemania 2020 Live Stream Online
ReplyDeleteOur team of trusted dissertation writers works on your task with thorough concentration. This results in the completion of work even before the deadline.
ReplyDeletesomeone write my essay for me | dissertation writing services
The next time I learn a weblog, I hope that it doesnt disappoint me as much as this one. hazard perception test qld practice
ReplyDeleteIt is really an extraordinary and obliging piece of data. Federal Pacific panel
ReplyDeleteSpeedily this excellent website may possibly without doubt always be well-known amidst virtually all blogs folks, to the thoughtful articles or blog posts or maybe testimonials. Albagora
ReplyDeleteGreat post! I like your blog because of its content which is very helpful to many. federalprocessingregistry.com
ReplyDeleteI have perused every one of the remarks and proposals posted by the guests for this article are very fine Skip hire bristol
ReplyDeleteITach WiFi devices provide a new level of control flexibility, for ... compatibility with control-based computer software
ReplyDeleteclick
I am very happy to read this. Appreciate your sharing play gem swap 2
ReplyDeleteI am usually to blogging and i genuinely appreciate your content regularly. mp3juices
ReplyDeleteThank you very much for this great post.satta king
ReplyDeletehttps://medium.com/@sadik8877/watch-joker-full-2020-streaming-online-7024315dfbd6
ReplyDeletehttps://medium.com/@sadik8877/watch-joker-2020-full-online-free-streaming-da82fab37755
https://medium.com/@sadik8877/putlockers-hd-watch-joker-2019-online-full-for-free-15da8ef3d519
https://medium.com/@sesbikel2/123movies-watch-joker-2020-hd-full-movie-online-free-32ecd293196b
https://medium.com/@sesbikel2/hd-joker-2020-4k-full-movie-watch-online-download-38e629a8a482
https://medium.com/@sesbikel2/download-and-watch-joker-full-movie-hd-2020-e4e76ff53063
Good Subway Surfers download. I think I may be a little to late to vote though.
ReplyDeletehttps://wrestlemanianfo.com/wwe Wrestlemania 2020
ReplyDeleteYour opinion is great, it is exactly what I think. If we go in that direction, everything will become much more perfect potty racers 4
ReplyDeleteIR Transmitter and Receiver Using Arduino: Tv ir remote uses InfraRed NEC Protocol for communication between infraRed remote and Tv itself.
ReplyDeleteclick on here
This post is good enough to get someone to understand this great thing, and I'm sure people will appreciate these interesting things play
ReplyDeleteIt seems like the major phone manufacturers are moving away from built in IR blasters so I'm looking for a way to future-proof my "dumb" devices that don't currently integrate with my IoT infrastructure. I have a mesh-networked smart home, but I need to find a physical remote to turn on my TV? There has to be a better way.
ReplyDeleteabout us
ABC Assignment Help is an ethical place where students can get Chinese Assignment Help services at the best price. Our professional academic experts consistently help students in assignment which is free of plagiarism.
ReplyDeleteChinese Assignment Help
Online Essay Help
ReplyDeleteOnline Essay Writer
Online Assignment Writer
Assignment Writer Canada
Assignment Writer
Instant Assignment Writer
Online Assignment Help
Dissertation Assignment Help
Assignment Writer Canada
Assignment Writer
Online Assignment Writer
Online Assignment Help Germany
Online Essay Writer
Online Essay Help
Instant Assignment Writer
Online Assignment Help
Assignment Writer Canada
Instant Assignment Writer
Online Assignment Writer
hp printer won't print black can happen due to multiple reasons such as dry or empty black ink cartridge, Printed clogging, or software related issues. For early diagnosis, you should always check and verify if you are the ink cartridges are full and not empty. The next step should be to confirm for the Clean printhead; your HP printer is equipped with an automatic printhead cleaning tool, which can be run through Control Panel. There might also be a chance of a blocked nozzle, and it can be cleaned with the help of a cotton swab. Additionally, you should always ensure to use the genuine ink cartridges and routine maintenance of your printers. I hope you will now get rid of the HP printer won’t print black
ReplyDeleteOn a regular basis, many users are using canon printer for the excellent printing services. Users prefer canon printers for their personal or official usages. It is certain that user can face minor or major technical issues while printing procedure. If your canon printer is not printing the documents, you can get connected with live printer experts to get full technical support to sort out canon printer not printing issue immediately. Our canon printer troubleshooting team is highly skilled and rich experienced to recognize the major reasons of canon printer not printing and apply the best technical resolutions to resolve this error within a few seconds.
ReplyDeletecanon printer troubleshooting
When QuickBooks desktop is unable to launch properly, QuickBooks Error 80029c4a arises which signifies the some of the necessary files are either missing or corrupt. QuickBooks Error 80029c4a signifies that the dynamic link library file got corrupted somehow. Sometimes this also indicates that your system might be at risk to the virus. You better check your antivirus and firewall configuration to rule out that possibility. If the process seems complicated to you and you need assistance. We are happy to help you with this simple process. Our technical support team can resolve this issue within a few minutes. Get in touch today!
ReplyDeleteAssignment Help Hong Kong is the best option to complete academic papers without any stress. If you don’t want to degrade your academic performance, make sure to connect with the professional service provider of assignment writing help.
ReplyDeleteAssignment Help Online
Online Assignment Help
I am applying my technical skills to resolve this technical problem, but I am facing a lot of problems. Hence, it has become a critical situation for me. I don’t have complete technical knowledge to find out the major reasons of this technical error. So I look for the permanent resolutions to resolve AOL Gold Icon not responding problem as soon as possible.
ReplyDeleteMcAfee is one of the best and powerful antivirus software, if you’re finding for an antivirus program for your computer system. You can install, and activate McAfee antivirus software at mcafee.com/activate. This antivirus program provides the safe and secure online browsing and safeguards all your important and valuable data. If you get stuck to install McAfee antivirus software, you can take specialized help from our certified antivirus experts.
ReplyDeleteMkvPoker Adalah Situs Judi Poker Terbaik Dengan Taruhan Uang Asli Yang Menjaminkan Kemenangan Yang Tinggi
ReplyDeleteWa : +855 9637 31855
Select the option of Assignment Help when you don’t want to take the stress of writing your assignments or homework. This option allows you to get experts’ assistance for composing your academic papers even in adverse conditions. You can take the online help of academic writers at any time using these kinds of services. If you can’t pay attention to homework writing or don’t have enough time, this option will help you a lot. Handle everything for composing your papers even in adverse conditions via online academic writing services.
ReplyDeleteA great post including its information and I positively bookmark to this site because here I always get an amazing knowledge as I expect. Thanks for this to share with us.
ReplyDeleteNeed My Assignment Help
Best Homework Help Online
Thanks a lot for your work and time you've spent preparing this article. I want to useful too, and recommend you service search for plagiarism at https://plagiarismsearch.com/. Try it, I think it will be helpful for you.
ReplyDeleteI want to buy PEB structural sheets for my green housing unit. I want to construct my housing building with the help of to quality Pre Engineered Buildings solutions. I have small budget for buying PEB sheets for my housing unit. I want to decrease my construction cost and time. I also want to use the lightweight structures for my accommodation unit. So I am looking for a reliable supplier of PEB sheets for my house. I don’t have ideas about the reliable supplier of PEB sheets. So anyone can suggest a reliable supplier of Pre engineering buildings for my housing unit.
ReplyDeleteJe sais que l'habitude naturelle des gens est de se pencher ou de se pencher sur la chaise, de sorte qu'ils ressentent généralement des maux de dos. Je pense que cette posture vient dans ma séance régulière. Alors maintenant, je souffre de maux de dos. Sur de longues périodes, une mauvaise posture assise peut endommager les structures de la colonne vertébrale et aggraver les problèmes de dos. Donc, je veux supprimer complètement mon mal de dos. Je veux donc acheter des chaises de classe mondiale pour ma séance officielle, afin que je puisse m'asseoir confortablement sur ma chaise. Je souhaite acheter des fauteuils contre les maux de dos à Toulouse. Je ne connais pas le distributeur de Fauteuils à Toulouse, donc je cherche l'aide de quelqu'un. Ainsi, n'importe qui peut partager un nom réputé de distributeur Armchair dès que possible.
ReplyDeletetrung tâm tư vấn du học canada vnsava
ReplyDeletecông ty tư vấn du học canada vnsava
trung tâm tư vấn du học canada vnsava uy tín
công ty tư vấn du học canada vnsava uy tín
trung tâm tư vấn du học canada vnsava tại tphcm
công ty tư vấn du học canada vnsava tại tphcm
điều kiện du học canada vnsava
chi phí du học canada vnsava
Using dissertation help services, students can complete their work and submit their projects on time. Students who have no ideas on how to start their thesis, they can search for our services and access the option of online dissertation help. For more information, make sure to visit the website of the service provider.
ReplyDeleteFor More Relevant Information Visit here-
dissertation Help service
dissertation writing help
dissertation Help online
Get the assistance of experts 24x7 using the option of online coursework help. With this option, you don’t have to wait for a specific time or make your submission delay because of any reason. It is good to have the services of academic writers whenever you have doubts to make effective assignment submission. So, buy coursework help now and make your submission on time.
ReplyDeleteRead More:- coursework help
coursework help online
Use Java Programming Help if you have less knowledge of coding and programming language. If you find tough to compose your Java papers before the due dates, get expert's help using the option of online Java programming services.
ReplyDeleteJava Assignment Help
java homework help
Java Programmer Help
Java Help
Thanks for share this unique Blog. Microsoft outlook Supportis a customer care helpline Number that is offered by one of the world's best Technical services providers in USA. To Read more about keyword outlook Support Phone number, Visit Here:- https://www.microsoftoutlookoffice.com/outlook-customer-service
ReplyDeleteRead More:-
outlook keeps asking for password
Outlook Working Offline
Outlook Error 0x800ccc0e
Outlook Send Receive Error
Outlook support Number
outlook customer service Phone number
outlook customer service number
Change Hotmail Password
hotmail change password
Forgot Outlook Password
Outlook Password
outlook forgot password
Microsoft office 365 support
Microsoft 365 support
Place an order for Assignment Help in Singapore so you can connect with professional writers. Pay a good amount to buy the services of online assignment help even in Singapore.
ReplyDeleteThe Ascent is an industry leader for Alternative Investment Fund Administrator, which provides funds solutions as per the client's specific needs. As a fund administrator, we can perform various sets of activities, including fund accounting, NAV calculations, etc. Industry experts lead our team with rich experience in funds structure, venture capital funds, funds of funds, and sophisticated real estate funds.
ReplyDeleteThe Quickbooks refresher tool helps you to diagnose and rectify the errors in QuickBooks application. However, now the intuit company has discontinued the refresher tool's operations and merged it with the QuickBooks tool hub. To download this tool, you can simply visit the intuits website and click download in front of the QuickBooks tool hub and then install it. To use the QuickBooks refresher tool, you can launch the newly downloaded program on your computer and then click the tool and click quick fix my program. This way, you can also troubleshoot various sorts of errors in your QuickBooks program.
ReplyDeleteYour efforts and dedication helps to enhance your academic performance. You need to put your time and effort when it comes to writing flawless assignment in Hong Kong as well. How will you manage your time when you have to write various assignments? What if you don’t find enough time to collect information regarding your research work? If you are facing these kinds of problems, then you need to use experts’ assistance. For that, use online assignment help and improve your academic performance. We all know that time plays a crucial role and it becomes more important when you are composing academic papers. If you receive Assignment help online service at the correct time even in Hong Kong, you may create a huge change in your approach and reap the best outcomes.
ReplyDeleteAustralian Assignment Help provides law writing services in Australia to students and Student Life Saviour provides assignment help Ireland services to students.
ReplyDeleteAssignment Help services uncover various modes to get writing assistance for different subjects. Place your order for academic writing services and grab the hands of professionals at a reasonable price even in Australia.
ReplyDeleteAssignment Help Australia
Online Assignment Help
Assignment Help Online
This post is good enough to make somebody understand this amazing thing, and I’m sure everyone will appreciate this interesting things.
ReplyDeleteMindFlex Home Tuition
How to write an essay? Do you have same question? No need to worry. Assignment Help Australia offers top quality essay writing services through expert writers.
ReplyDeleteAccount: When making a money related assignment, one should be cautious as the subject is confounding, with different ideas and strategies that have striking likeness. It includes estimations just as examination. That is the reason understudies get mistaken for account assignments and ask, "Who in Australia can Write My Assignment for me?" The appropriate response is very basic. abcassignmenthelp.com with its asset of various experienced essayists is the most ideal decision for Assignment help online that you can get. more- assignment help melbourne
ReplyDeleteAre you seeking professional writers’ assistance for writing homework? Then, you must visit our website and take our Homework Help. We are offering excellent homework writing services to all students and allow focusing on their studies. If any scholar finds tough to manage their time according to their assignment requirements, then choosing the academic writers’ assistance is the best solution.
ReplyDeleteQuickBooks Error Code 15101 With the rise of technological advancements, technical issues have become a part and parcel of our life. Errors and glitches are not welcome mostly. They are time-consuming to resolve. They can put a screeching halt. Talking about the accounting and finance field, we just can’t afford any problem. QuickBooks is an accounting software that clicks the mind when the thought of taxation, accounting, and finance.
ReplyDeleteDo you need help to write your MBA assignments? Then, you are at the right platform! Here, we are going to discuss our MBA Assignment Help services. Our tailored services offer the required assistance to all students when they can’t write an MBA assignment so that they can pay attention to extra circular activities.
ReplyDeleteStudents approach recordings, and the learning cycle is individualized and made to be approached slowly and carefully. The services of our Management Assignment Help likewise have programming that makes it simple for them to converse with mentors and this interactive methodology is useful. There is no requirement for you to keep battling or bombing grades while you can find support with an assignment to improve your learning.
ReplyDeleteAvail the best convection microwave oven in India under 10000, 15000 and enjoy! best convection microwave oven in india
ReplyDeleteThanks for sharing your thoughts. I truly appreciate your efforts and I will be waiting for your further write ups thank you once again. do my assignment
ReplyDeleteLooking for translation in houston ? you're at right place . global translation help offer 100% accurate houston translation services at economy price
ReplyDeleteThanks for sharing this information . I really appreciate your efforts . seeking for affordable boston translation services global translation help provide supreme quality translation help in boston USA with in your budget and accurate translation.
ReplyDeleteCheck out the option of assignment help in New Zealand to buy the assistance of academic writing. Online Assignment Help connects you with professional writers so you can get requisite help for your submission.
ReplyDeleteLmbyte EDB to PST Converter tool tool effortlessly recover and convert multiple EDB mailboxes to Outlook PST, Live Exchange Server and Office 365 in a single conversion cycle. You can easily convert complete data from the EDB file into Outlook PST file format having the folder structure intact. It is a simple wizard that is easy to use for any non-technical user who needs to save EDB files into Outlook PST, EML, HTML, MSG, etc format. This software supports all Exchange Server and MS Outlook versions. https://www.lmbyte.com/edb-to-pst-converter.html
ReplyDeleteQuickBooks Payroll not only provides accounting tasks like creating invoices or making company files, also it facilitates features like making payments and recording or keeping track of transactions. But sometimes, this feature can be interrupted by occurrence of payroll setup errors. These are unrecoverable errors. These errors can have many error codes:
ReplyDeleteThe goal of our task help isn't just to assist students with getting the ideal checks or evaluations however to advise and teach them through an inside and out investigation of the separate subject or point. The best thing about our university assignment help Australia, additionally which makes us unique among others, is the quality, credibility, and sensible estimating of our services.
ReplyDeleteAvail the best Letterkenny Quotes here with amazing sayings and funny phrases. Have a read at these Letterkenny Quotes. letterkenny quotes
ReplyDeleteFor people as dedicated and ardent in learning and understanding the subject, the crazy for study website offers an Electrical engineering textbook solution manual which provides answers to all of the toughest engineering questions important from examinations point of view. The textbook solution manual is the basic key for precise understanding of electrical engineering. It values not only the calculations and exercises but also explains the steps and other theoretical concepts that are important for higher exams.
ReplyDeleteI am genuinely thankful to the holder of this web page who has shared this wonderful paragraph at at this place.
ReplyDelete토토사이트
Understand here what is digital marketing meaning in hindi, digital marketing kya
ReplyDeletehota hai. Read for more details. what is digital marketing in hindi
Know all the details about trp full form, trp meaning or trp meaning in hindi complete guide to
ReplyDeletetrp. full form of trp
Thumbs up guys your doing a really good job. 인증업체
ReplyDeletePositive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.먹튀검증업체
ReplyDeleteAvail the best solution sheets on assignment with respect to any subject. Desklib provide assistance of academic writing that is affordable as well as plagiarised.
ReplyDeleteWe know how to build your brand visibility, it requires a combination of sophisticated Mobile App Development, website design, development, and SEO techniques. We provide access for our clients to the range of specialized digital strategies.
ReplyDeleteWe are here to provide you the platform that helps to grow your business very fast
Are you ready to grow your business now
Contact us –
995 814 6505,
Email us – info@adixsoft.com
Website - https://www.adixsoft.com/
Also read our blogs-
https://www.adixsoft.com/get-a-quote/
If anyone searching for the best ui ux design service in Pune or Gurgaon, then customers can feel free to contact us. The design trip is an outstanding agency that provide this facility in reasonable cost.
ReplyDeleteThis is sharing such a excellent post. 먹튀먹튀
ReplyDelete