Tag Archives: AnalysIR

Update: The kits have landed, roll-out plans & Arduino vs Raspberry Pi performance

We posted another update a couple of days ago covering many of these points, but it seems to have evaporated (Maybe I forgot to hit the ‘Post’ button).

We know some of the kits have arrived locally in Ireland. However, one backer reported that the packaging was ‘compromised’  but that the components were OK. He sent us some photos & we will now update packaging on all future kit shipments. If any backer experiences a problem with the packaging, email us and we will sort it out. We plan to post the next batch of kits over the weekend or early next week.

On the Raspberry Pi front we have learned some differences compared to Arduino. For what we are doing with AnalysIR, Arduino appears superior, which was initially surprising considering the 16MHz vs 700Mhz CPU speed. But apparently, it’s because Arduino is dedicated exclusively to IO & RPi is a linux based OS doing lots of other things simultaneously. I believe RPi may perform better with kernel patches or over-clocking, but we don’t want to go there yet.

Yesterday we got the measurement of IR modulation frequency working on RPi using GPIO. This may be a world first for both Arduino & RPi. The only downside is that we cannot decode the signal & measure the modulation frequency simultaneously on the RPi, which we can on the Arduino. So for now, we will just provide a command line facility on RPi for measuring modulation Frequency. We have also written a script to take the raw output from LIRC on the RPi and convert it to AnalysIR format via LAN, which means we can also use LIRC as a real-time recording mechanism on RPi. (In theory, it should be easy to extend this to every other Linux platform with LIRC installed)
One bonus with the RPi is that we can already decode & analyse IR signals over the LAN, a feature which the Yún will also provide via WiFi. We also read the blog post on the upcoming Arduino Yún release and can’t wait to get AnalysIR running on it…… The Yún should work out of the box, via serialUSB as it also has a Leonardo on-board and we will have to write up some small script to enable the WiFi part (Oct+ time-frame for WiFi).

Regarding our planned roll-out (circa 9th Sep), we plan to stick with a 2 phase approach as outlined on the main campaign page. If there are additional slots available for the initial phase we will contact backers directly. The reason is to avoid wasting time for 100+ people with a new release.

I would like to finish off by thanking you all for supporting AnalysIR.

Update: AnalysIR network enabled, Kits, RPi, Yún

The first set of kits has shipped today and because we were able to get a discount on the components we also included some bonus components as a gift (2 x npn transistors, 4 x 100 ohm resistors & 4 x 4k7 ohm resistors). These extra components may be of use to those who want to build their own IR led Driver circuit with the TSAL6100. We didn’t realise that shipping components was such an ordeal (individual Customs & Air Safety declarations depending on destination). The shipping cost was more than budgeted, but was also offset by the discount achieved.

On the Raspberry Pi front, AnalysIR is now running well without any noticeable glitches. The approach we have adapted is to connect to the RPi over the network. The solution was to pipe the output over the LAN to a virtual serial port on the Windows PC. The virtual serial port utility is freely available for Windows and the network stuff on the RPi is just standard shell commands. I should point out that we haven’t yet tried to measure the modulation frequency on the RPi, just straight decoding though the IR Receiver. When idle we are using only 1.3% CPU on the RPi, when recording a single signal it goes to 1.6% CPU & when full out recording IR it goes up to ~ 4.9% CPU usage. This is pretty good as it doesn’t impact on other processes; considering our first attempt was using 99% CPU when idle 🙂

The potential to decode & analyze over a network may lead to some interesting features in future – ideas welcome. As a minimum, the work with the RPi will make the port to the Arduino Due easier (we are expecting a Due next week) and also when the Arduino Yún is released with WiFi

Update: Campaign reaches 100 backers, RPi & News

We have now reached 100 unique backers for AnalysIR and we would like to thank you all for your generous support & welcome our latest backers. In particular, we would like to give a special thanks to those who made donations without perks.

And now for the News:

  • The components for the Starter Kits have arrived as expected; the envelopes are already printed with addresses taken from IGG & we plan to drop them off at the Post Office sometime on Monday. Hopefully, most people will have received them before AnalysIR is released to backers (circa: 9th September, which allows1 week after the campaign ends to eliminate as many glitches as possible). Remember, to get the full use of AnalysIR you will need the components in Kit A, as a minimum. However, just having an IR receiver is sufficient.(+ of course an Arduino).
    So far, everyone has chosen ‘Kit F’, which is probably a good idea.
  • Regarding the Raspberry Pi ‘stretch goal’, it looks like we may not reach this goal, based on the current trajectory. However, we decided to purchase a Pi with the IGG (aka your) funds released to date & it arrived yesterday. After a lot of ‘wasted’ time trying to get it set up without a display we eventually succeeded. So today we had a go at porting our Arduino code over to the RPi. For the initial attempt, we have decided to use the WiringPi library & we have good success so far. So here is an exported trace image of the first successful NEC IR signal decoded by AnalysIR from a Raspberry Pi.
    SignalTraceImage
    First successful NEC IR signal decoded by AnalysIR from a Raspberry Pi

    use CTRL+
    On the top you can see the same IR signal recorded directly by AnalysIR at the same time (via 2 different IR receivers – one connected to an Arduino & the other connected to an RPi pin)

  • We haven’t fully finished with the RPi coding yet & there are some minor glitches, but we are happy with it as a first attempt. At the moment we are using interrupts & are only dumping the information to a terminal screen via a network connection & then manually pasting the output into AnalysIR’s import facility. We have to do some further study to see how we can best get ‘serial’ data from the RPi to the Windows PC. The simple solution is to use a USB serial adapter connected to the Rx/Tx pins of the RPi, but given it already has an Ethernet port we are going to investigate if a more elegant solution is feasible.

That’s all for now……… Next week = Documentation update

Update: Kits, IR Compression, Serial Hack etc….

As we are approaching the last 10 days of the campaign we would like to share the following updates:

● Today we were informed that the kit components were shipped via UPS to us here in Dublin. Hopefully, they will arrive within a few days, which means we should be able to start posting them out over the weekend or early next week.

● We have been busy this week with preparing the Windows installation package and it seems to be going well – so far.
● We also improved the Arduino code and increased the effective RAM available for AnalysIR.
● We have also integrated the IR modulation measurement into the GUI and it works well with the Modulation frequency being updated ‘at least’ once per IR signal. As we mentioned previously, we have not seen an example of IR modulation frequency being measured on an Arduino before, and particularly not simultaneous with IR decoding.
● We have also added support for compression of IR when importing or exporting in Global Cache format.
● Yesterday we had an interesting experience with the Arduino. As we were swapping out one IR receiver and held the signal line in the hand – a signal received by AnalysIR. We inspected the signal and it seemed to be pretty consistent, so it was analysed quickly using excel and it turned out (not surprisingly) to be mains hum which in this part of the world has a frequency of 50Hz (vs 60Hz elsewhere). That then got me thinking about the following hack!
● We then tested sending a series of serial signals from another Arduino into the IR rx pin and voila the serial trace appeared in the display of AnalysIR. We successfully tested up to 38400 BAUD and bit higher. So even though we do not plan to ‘officially’ support serial protocols at this time, it means that you could potentially use AnalysIR as a pseudo Serial analyzer or even a basic digital signal/logic analyzer of sorts. The limit would be somewhere between 40-50kHz, on a 16MHz Arduino. Not bad a hack before release  🙂

● We have recently come across several new IR protocols including:
Denon
Motorola
Samsung
Daewoo
Japanese Code

– To date we have completed all the investigations needed to decode them and add them to AnalysIR. However, we will have to defer this until after the initial release has settled down & we can get reliable source signals to verify against. Once we complete these new signals we will be heading towards an even more comprehensive list of supported protocols.

 

……stay tuned

Infrared Component Kits

We have decided to offer a small number of Infrared Component Kits to help users of AnalysIR get started quickly. As a minimum you will require 1 IR receiver to use AnalysIR, plus we highly recommend the ‘IR Learner’ below if you also want to measure modulation frequency.

(Note: This is an updated copy of the original document from the crowd-funding campaign. The original document can be found here.)

IR receivers/emitter in Infrared Component Kits:

Model Frequency Description Gain Typical Application
TSSP4038 38kHz 1 x IR receiver Fixed Gain Barrier + AnalysIR
TSMP58000 20 -> 60kHz 1 x IR receiver Learner + AnalysIR
TSOP4436 36kHz 1 x IR receiver AGC 4 RC5/6
TSOP34438 38kHz 1 x IR receiver AGC 4 NEC
TSOP4840 40kHz 1 x IR receiver AGC 2 SONY
TSOP2256 56kHz 1 x IR receiver AGC 2 RCA
TSAL6100 All 1 x IR emitter IR LED transmitter

AGC 2: Standard Applications
AGC 4: Very Noisy Environment

Kits do not include AnalysIR

Select one or more kits from the following:

Item Kit A Kit B Kit C Kit D Kit E Kit F
TSSP4038 Y Y Y Y Y Y
TSMP58000 Y Y Y Y Y Y
TSOP4436 Y Y Y Y
TSOP34438 Y Y Y Y
TSOP4840 Y Y
TSOP34156 Y
TSAL6100 Y Y Y Y Y
Bonus Gift see 11
below
Y Y Y Y Y Y
Shipping see 9
below
Y Y Y Y Y Y
Student Tip Y Y Y Y Y Y
Perk Price $8 $10 $10 $12 $13 $15

 Y = Included

Instructions:

  1. Select the kit you want based on the items included
  2. For example, Kit A contains 1 x TSSP4038, 1 x TSMP58000, plus shipping (see 9 below) and a small tip/gratuity for the student.
  3. Then purchase the kit or kits you want by contributing the relevant cost (or sum for multiple kits)
  4. To purchase Kit A just make  an $8 payment  via the PayPal button on this page. To purchase multiple kits just make one contribution to the same perk for the total amount.
  5. If you select Kit B or Kit C then include  a message on PayPal to clarify which perk you want.
  6. These component Kits do not include AnalysIR.
  7. Cost increased (Sep 2014) due to increase in postage.
  8. TSOP4438 replaced with more modern TSOP34438.
  9. Shipping: is included in price above, provided you are also buying AnalysIR or have bought AnalysIR previously. Otherwise, add $5 to the prices above (once only) for worldwide shipping.
  10. Delivery, usually takes from 5->10 working days. There may be some exceptions to this – depending on location.
  11. Bonus gift: We also include a selection of useful components, with all kits, to help with your IR projects. (2 x NPN + 8 x resistors … enough to complete a good Infrared emitter circuit for longer range)

Notes:

  1. Please feel free to order these parts directly your-self. We won’t be offended in any way. We are not offering these to make any $$$ at all. In fact it is much less work for us if backers have or supply their own components.
  2. Kit A, B or C is more than adequate for most users.
  3. Standard shipping worldwide for owners of AnalysIR is included, Otherwise add an extra $5, as per Instruction 9 above.  Postage is not tracked or insured. Unfortunately, we cannot provide any replacements for items mislaid in the post or delivery failures. Due to the low value, we do not expect that there would be customs charges etc.  and if there are any you will have to cover this cost.
  4. We have included a small tip/gratuity for the student who has agreed to pack & post these perks.
  5. This perk is intended as a quick start aid for backers.
  6. These perks will be posted from Dublin, Ireland and typically take 5-10 working days depending on worldwide destination.
  7. You can select multiple kits.
  8. All kit IR components are from Vishay, who are a leading supplier of high quality components. We use them all the time for IR components.
  9. We have allowed for the Sales Tax, IGG, PayPal, Currency & inward shipping charges which will be levied on us for these components.
  10. We reserve the right, at our sole discretion, to alter or replace any component if it is not available when we order them. However, we will do our best to match functionality as much as is reasonable. Hopefully this won’t be an issue.
  11. We have not included any Arduinos as they are freely available online. Many of these kit components are not easily available in quantities of 1, without excessive mark-ups, high minimum orders or postage.
  12. Shipping will be to PayPal registered address. (Let us know, immediately, if you want it sent to an alternative address)
  13. Use the Contact Form to contact us, directly.

E.&O.E.

Update: AnalysIR Auto-clean feature for IR signals

Here is a screenshot showing the new automatic signal cleaning feature in AnalysIR. You will notice in channel 2 (yellow & red) where I have overlaid the recorded signal from CH1 (green) on top of the cleaned signal in CH2 (yellow). The green & red signal is the recorded signal & the yellow signal is the ‘cleaned’ signal.

AutoClean_screenshot
Screenshot of AnalysIR – Auto-clean feature

Note: Use CTRL+, CTL-, or CTRL0   –   to zoom in & out on most browsers
The reason for the signal degradation in the first place is due to the way all IR receivers work. Typically, marks will be shorter and spaces will be longer. Also, weak IR signals will also alter the duration of marks/spaces.

Combined with AnalysIR’s sensitivity setting for decoding it is possible to rebuild a perfect signal from a really poor signal.

With this new ‘Bonus Feature’, we can export almost perfect signals from AnalysIR and re-import the exported signal to compare against the original recorded signal. This will be a great benefit when designing IR devices or circuits.

Well another truly amazing day – have now reached 60 backers for AnalysIR.

Today we tested out the new export feature with one of our backers who had lost a remote control for a cool RGB light, but had previously recorded the NEC (extended) codes using IRremote. As a first test of the new export facility, we were able to read the NEC codes into AnalysIR & then export them into Pronto format because our backer had a smart-phone app & IR blaster that only takes Pronto codes as input.rgblamp

 

Getting the codes into AnalysIR was easy, because we happened to have a similar remote in our collection, which had many of the same codes. Otherwise we would have used an Arduino IR library to generate the IR signal for AnalysIR.

What was really impressive is that this all worked first time. Happy us & happy Backers.

We hope to do similar tests with all the other export formats this week, including Global- Cache commands.

Finally, a big welcome & thanks to all our new backers!

Update: More good news today & another Bonus feature!

More good news today & another Bonus feature!

The news is that today AnalysIR was accepted into the Microsoft BizSpark programme, which will help us out in our development efforts on the MS platform along with lots of other goodies.

The Bonus feature is the addition of support for Importing of Global Caché commands in GC-100, iTach, GC-IRL & GC-IRE formats into AnalysIR. This was suggested by one of our backers & we hope to close the loop by supporting export as well (Time permitting).

An interesting point is that GC sells a learning device (like an RS-232 dongle) for importing IR signals and it costs circa $100 on Amazon. It looks like when we get the export feature working, AnalysIR with an Arduino will be able to a lot lot more than this $100 device.

So the list of formats now supported for import includes:

– IRremote
– IRLib
– Pronto CCF
– Global Caché GC-100
– Global Caché iTach
– Global Caché GC-IRL
– Global Caché GC-IRE

and we may add a couple more in the initial release. We also hope to support export of these protocols from AnalysIR – time permitting. This means that you will have a generic device than can record & decode via the Arduino – plus convert to/from all these formats. Impressive!

Thanks to our backer who has a Global Caché device and is willing to test the AnalysIR export once it is available.

Update: Bonus feature – IR Chart Analytics for AnalysIR

Today we have added another bonus feature to AnalysIR – a colour coded chart which displays the distribution of Marks & Spaces of an IR signal, including an option to select the granularity of each time slot measured (from 10 to 1,000 uSecs). We have included a screenshot below of an NEC signal at 50 uSecs time slots and the chart shows the number of Mark/Spaces for each time range found.

chartscreenshot
Screenshot of AnalysIR Analytics feature

This feature has a number of potential uses:

– Makes decoding new protocols easier, because you get a quick analysis of the pulse lengths (marks & spaces) in the signal.

– Can immediately show problems with your IR receiver, transmitter, encoding or decoding circuit/logic. For example, in the chart above the space for a ‘1’ bit should be 1,690 uSecs and it’s shown on the graph as being spread out between the 1550 to 1700 time slots. This is not normally a big issue as most decoders will allow a reasonable margin of error when decoding, but it can help to highlight issues when designing.

– Using the image save option means you can export the chart and use in reports, blogs or presentations.

Thanks again to all our backers who used the IGG referrals option for AnalysIR. It has had a real impact. (We are now ranked in the top 10 Technology projects on IGG which have reached over 75% of target!  – ahead of many bigger projects Keep sharing your AnalysIR referral link.  See earlier post re referrals)

And finally, keep your feature suggestions coming!

 

PS: You should be able to zoom in/out of an image using CTRL ‘+’, CTRL ‘-‘ or CTRL ‘0’ in most desktop browsers.