Flir One teardown part 2 - Lepton hacking

Sdílet
Vložit
  • čas přidán 29. 08. 2014
  • Freeing the Lepton from its Iphone prison!
    Lepton resources page : www.electricstuff.co.uk/lepton...
  • Věda a technologie

Komentáře • 137

  • @ThingsWhichArentWork
    @ThingsWhichArentWork Před 10 lety +36

    I love your videos Mike because you leave the hardcore wafeform analysis in - Please don't dumb it down for us. You do the best electronics vids on the 'net.

  • @ChongMcBong
    @ChongMcBong Před 10 lety +7

    that home made socket is a bloody masterpiece!
    nice work Mike :)

  • @OrbiterElectronics
    @OrbiterElectronics Před 10 lety +4

    Proper full-on electronics. Thanks Mike for the awesomeness.

  • @bitcoredotorg
    @bitcoredotorg Před 10 lety

    Exciting video Mike. More hardcore stuff!!
    Once again, my absolute favorite youtube channel author proves his awesomeness. I always learn something new, no matter what the video subject you've produced. Thanks Mike!

  • @electronash
    @electronash Před 10 lety +2

    Superb vid as always, Mike.
    Is it possible the Atmel ARM is accessing extra boot data from the SPI Flash on the board? Would be interesting to see how the chip select for the Flash chip relates to the other data.
    Much simpler using SPI rather than MIPI for the pixel data though.
    I'll definitely be grabbing one of the sensors if they make them available separately.

  • @robertcalkjr.8325
    @robertcalkjr.8325 Před 10 lety +2

    Thanks Mike. That is badass! I'm glad I found your channel!

  • @yakui5264
    @yakui5264 Před 10 lety

    Ahhh, you're the best man. I was ruined when I first saw the "coming soon to iphone" when the FLIR one was first announced. Cheers!

  • @anthonyj777
    @anthonyj777 Před 10 lety +1

    I don't think it gets much better than this :)
    Excellent 35 minutes, well done.

  • @doctorgarner
    @doctorgarner Před 9 lety

    Good god you are a fantastic engineer. Could watch you reverse engineer these things all day! Can't wait to see your analysis of the Lepton2

  • @elboa8
    @elboa8 Před 10 lety +1

    Tear down! Now THAT'S a tear down. Great video Mike. Thanks

  • @SetMyLife
    @SetMyLife Před 10 lety

    Mate, you are the best. No idea how much experience is behind that, but gotta be decades.

  • @azyfloof
    @azyfloof Před 10 lety +10

    "...I thought this would be too hardcore for many viewers"
    Aww.. :-(
    ".., I've moved it to the end"
    Yay! :D

  • @mariuspopescu3117
    @mariuspopescu3117 Před 10 lety +14

    Mike, that's a fine piece of reverse engineering! My fingers have been itching too for some time to reverse engineer the Flir Lepton, but damn you're fast! :) Major props for easing the task for anyone else willing to venture in Flir Lepton's still uncharted territory.
    (please excuse my shameless plug...): Should anyone be interested in entry-level, sub $100, open-source, open-hardware thermal imaging be sure to check my ongoing project on Hackaday.io: hackaday.io/project/1974-TJ---$99-Thermal-Imager

  • @Kallenator1988
    @Kallenator1988 Před 10 lety

    Thanks for sharing and including detailed reverse engineering shots from the scope. Brilliant prototype, looks it's part ^^
    Looking forward to seeing the microchip code if you decide to upload it.

  • @oOMonkeyMagicOo
    @oOMonkeyMagicOo Před 10 lety +7

    With the cheap video glasses and this video, is one of these projects going to be a set of thermal imaging goggles? 2 + 2 = 5 an all.

  • @magikality
    @magikality Před 10 lety

    Mike, mate, you are a genius. Another amazingly insightful video.

  • @Ryuuken24
    @Ryuuken24 Před 9 lety

    Is it possible to have two or more cameras to collect data for same viewing area, and divide the resolution, so each camera is doing different parts of the entire frame, and have a collective output?

  • @Kilohercas
    @Kilohercas Před 10 lety

    get STM32F429i-DISCO, and you could make color mapping while outputting data to on board 320x240 TFT screen.
    Is it possible to get only sensor ? if yes, from where ?

  • @user-jt3nf7in5w
    @user-jt3nf7in5w Před 9 lety

    GREAT idea with the frame around the contacts!

  • @andrewmcneil
    @andrewmcneil Před 10 lety +5

    Mike you’re a true hacker my friend, a self taught genius!

  • @DanFrederiksen
    @DanFrederiksen Před 10 lety +2

    Nice. Could be a USB camera and for android as well.
    The flir page says the lepton sensor is available for oem. That sounds to me like it can be bought alone. Prompting digikey to stock it could be all it takes. Digikey folks are quite responsive to suggestions.

  • @yiyou6529
    @yiyou6529 Před 9 lety

    Awesome video!
    I got a lepton from groupon. I wonder if you could provide me anything that I can refer to in order to get the SPI data and synthesis them into image. Thanks!

  • @electronalchemy7513
    @electronalchemy7513 Před 10 lety +1

    Might it be possible to hook up a JTAG adaptor to the ARM and do a memory dump?

  • @DextersTechLab
    @DextersTechLab Před 10 lety

    awesome, great to see the bus decoding, lots of useful tips. We just need to see the price of the modules drop now.

  • @raminpashaie
    @raminpashaie Před 10 lety

    Hi, I have one question about FLIR ONE. Can I program the system to read the temperature in my computer and use it to turn on or turn off the heat source? I want to get the feedback few times a second and precisely control the temperature. Is this possible with FLIR ONE?

  • @googletitsfost
    @googletitsfost Před 10 lety

    Mike, awesome vid. I glad you only moved the scope stuff to the end instead of trashing it, they were still very interesting. I just wish my scope was as powerful - I could only dream of a list function for I2C data.

  • @Zauviir
    @Zauviir Před 10 lety

    This is awesome, I purchased a E4.8 because of Mike and I'll get a flir one to start hacking now, I do not have a iphone but that does not look like it will be a problem.
    I would like to root that linux soc and see whats on there, does that do the initial configuration crosstalk?

  • @ValdemarCamilo
    @ValdemarCamilo Před 10 lety +1

    aww man, seeing this in the queue made my evening. Please keep doing this stream of consciousness reverse engineering thing. this and the mipi display videos where awesome.

  • @AttieGrande
    @AttieGrande Před 10 lety

    @mikeselectricstuff I think you're right - those reset / power down pins are most likely to be used by the processor's RBL (ROM Boot Loader). The larger ARMs tend to have their next stage boot loader (e.g U-Boot) in SPI flash. It's a shame that the pins are shared though... :-\

  • @PowerScissor
    @PowerScissor Před 2 lety

    I have 2 Flir One Pros that both refuse to funtion (the same red light is all I get with both of them).
    They are basically brand new, and the onboard sensors and cameras surely work fine.
    Is there any way for someone with no electronics background (just build my own drones is the extent of electronics and soldeting I've done) to make use of these $350 dollar paperweights?

  • @sarowie
    @sarowie Před 10 lety

    Is there a GPL copy in the manual?
    I mean, ignoring open source licenses is a common thing, but still:
    Where is the source code of the kernel and the documentation how to flash a new kernel onto the thing?

  • @mau557
    @mau557 Před 10 lety

    Hey! Great videos. And amazing job you are doing tearing down this device. I have heard that the Lepton Core is the same thermal core used in the FLIR Ex Series of cameras, and all Ex Series use the same core but each produce different resolutions which are limited by software. Some guy (maybe you. XD) manage to hack the Lepton Core to make the cheapest Ex camera perform like the most expensive Ex camera (80x60 vs. 320x240). Can this be done to the FLIR ONE? Is it posible for this device to perform in 320x240 resolution??

  • @vehasmaa
    @vehasmaa Před 10 lety +1

    I dont know why, but i like these sort of decoding protocols videos...

  • @1974Alfa5Spd
    @1974Alfa5Spd Před 10 lety

    Funny how you mentioned this could be integrated into a quadcopter or something, because seeing how simple the mockup you built on that PCB was my first thought was to mate it with a cheap 480TVL board camera from china and an RC camera switcher so just a flick of a switch can take you from standard color camera to thermal. Add a lens onto it to focus it at about 10-15 feet and you have a DIY government drone.
    Maybe with some extra hardware the two signals could be overlayed like in the One the module came from or the Flir E series.

  • @eigenvector7035
    @eigenvector7035 Před 6 lety

    24:00 ds1054z also takes data for protocol decode from the display, makes anything wider than 12-14 bits undecodeable at once.

  • @crgarciamg
    @crgarciamg Před 10 lety

    What I like best are exactly the "hardcore" reverse-engineering stuff!!! Keep up the nice work!

  • @rocketman221projects
    @rocketman221projects Před 10 lety +2

    It would be cool to add a raspberry pi with thermal imaging to some projects. I hope sparkfun or someone starts selling these modules at a good price.

  • @johndoo1265
    @johndoo1265 Před 6 měsíci

    Hello Mike, I had an issue with that FLIR One version and want to ask, if you give me some tips to fix this problem 😅

  • @ghwizz
    @ghwizz Před 10 lety

    Another masterful demonstration of the art of reverse engineering! I can just barely keep up - but I learn more in a few minutes watching over your shoulder than in a whole book of electronics theory! (best to do both, they re-inforce each other, but Mike is much more watchable!)

  • @dorsetengineering
    @dorsetengineering Před 9 lety

    What scope is this? It's awesome....

  • @kagi95
    @kagi95 Před 9 lety

    This is incredible, even though I can only grasp a tiny bit of the technical side of things.

  • @90SecondsofAviation
    @90SecondsofAviation Před 10 lety +35

    Mike, my biggest respect goes to You, I know this video is going to be awesome ! Thanks Mike for those videos, You are my number 1 channel behind Dave haha :D (No offense Dave, still love Your videos but I like Mikes style better)

    • @robertcalkjr.8325
      @robertcalkjr.8325 Před 10 lety +44

      No offense, but Daves teardowns aren't even close to Mikes.

    • @90SecondsofAviation
      @90SecondsofAviation Před 10 lety +7

      Robert Calk Jr. I agree, Dave is more professional, but I like Mike and how he reverse engineers everything ! Mike is like 1337 guy haha

    • @robertcalkjr.8325
      @robertcalkjr.8325 Před 10 lety +3

      use the force
      Dave is funny & has the right tongue angle.lol

    • @90SecondsofAviation
      @90SecondsofAviation Před 10 lety +3

      Robert Calk Jr. I agree, they both are pro's at electronics, But I just liek Mikes style more :)

    • @electronalchemy7513
      @electronalchemy7513 Před 10 lety +9

      Dave is more into entertainment videos now, Mike's are firmly in the engineering domain. Fair enough really, Dave has to go with what generates most views/money! But this is what I'm watching at 5am on a Sunday morning. I suspect Adafruit may well underwrite an order for 1000x sensors @ $250, they have a lot of customers with disposable incomes who love this sort of thing.

  • @markbell9742
    @markbell9742 Před 10 lety

    Thanks Mike: I'm not a digital guy, but learning a bit from your vids. Although, I still don't know enough to know what I don't know. Cheers, Mark

  • @yaghiyahbrenner8902
    @yaghiyahbrenner8902 Před 10 lety +1

    this is REAL hacking, dam you got good at this. respect.

  • @Vogtinator
    @Vogtinator Před 10 lety +1

    To get into the linux system that's running it should work to press "Ctrl-C" at "Hit CTRL-C to s autoboot" (you lost 3 bytes there) and add "init=/bin/sh" to the default cmdline using u-boot commands. There may be some interesting stuff in the image.

  • @poiuytrewq8ff
    @poiuytrewq8ff Před 9 lety

    why the hell would anyone in their right mind thumb this down? what IDE are you using for the PIC?

  • @wingswest328
    @wingswest328 Před 10 lety +2

    Simply amazing!

  • @AurelioArias
    @AurelioArias Před 9 lety

    fascinating videos!

  • @bfhben
    @bfhben Před 10 lety +16

    Reading the Linux log there is a lepton kernel module, may it be worth asking FLIR for the Linux source as required under GPL, it could give some insight on the I2C data.

    • @donpalmera
      @donpalmera Před 10 lety +2

      If they did it "right" then the lepton module will be a kernel to userland shim that doesn't do much.

    • @bfhben
      @bfhben Před 10 lety

      I guess so, still figure its worth a shot.

    • @sarowie
      @sarowie Před 10 lety

      donpalmera
      Yes and no. As all I/O operations essentially pass-trough kernel calls, it could interesting to replace those kernel calls with dummy functions which report those calls out to the serial port. Lots of effort - recording an replaying the I2C Traffic would be easier for MIkes purposes - but when you want to hack the FlirOne it self (not the bare chip) it could be still worth it. Remember: They need to hand out the source code AND a documentation how to flash the kernel onto the device.
      I am really confused why they use linux here - on the higher end cameras they use a Windows, which has the benefit of "when you buy a license, you can to what ever".
      But with Linux, you have to supply a GPL copy, hold backups of every ever released Kernel Version (any consumer can ask for the very version his specific device is running) and so on. I mean: They don´t need a public server. They just need to hand out the source to verified customers on request, but... only one person has to do it and then this person can release it.

    • @donpalmera
      @donpalmera Před 10 lety

      sarowie
      >Yes and no.
      I'm not sure what you mean by "yes and no" really.
      It could be a shim that exports enough to userspace to do the work. For I2C etc they could just use the userspace interfaces for those subsystems. You'd be able to see what it's doing with something like strace. It's more likely that their module is handling some stuff like interrupts that aren't easy to do well in userspace.
      Or maybe it does contain actual driver code because they don't care as all of the expensive R&D went into the stuff that's in the chip itself. Maybe they are looking to mainline the driver.. who knows. The one thing you can be sure of is that it doesn't contain anything that they wouldn't want to be in the public domain.
      >they use linux here
      Why not? it's in almost everything else.
      >AND a documentation how to
      >flash the kernel onto the device.
      The Linux kernel is GPLv2. AFAIK GPLv2 does not contain anything about instructions on how to flash or supplying keys so that burned in bootloaders etc will accept the user compiled kernel. You are probably thinking of the anti-tivo stuff in the GPLv3.
      >(any consumer can ask for the very
      >version his specific device is running)
      >and so on.
      Tagging the release in their local git will be part of their release cycle so it's a piece of piss to generate a copy of the source that the user is requesting.
      >They just need to hand out the source
      Companies can make it very hard to get the source and still be within the terms of the license. The number of people you actually have to give the source to goes down a lot when you ask people for their name and address to send a physical copy.

    • @sarowie
      @sarowie Před 10 lety

      donpalmera
      In one case I can think of, a developer of an open source library sued a company that used his library in a consumer product. As he was a copyright holder and a owner of one of their product (he used it to prove that is was actually this specific library), he had any right to sue them and no hazard, after winning the case in court, to release the code publicly.
      About instructions: It deepens on how you read paragraph 3 of the GPL 2:
      > For an executable work, complete source code ...
      >plus the scripts used to control compilation
      > and installation of the executable
      How fare those installation go?
      And the right to modify the software.
      (It can be argued, that locking the programming interfaces by encryption and similarly methods, it would be impossible to use the right to modify the software [on the specific hardware]. Therefor blocking access would invalid the license.)
      But you are right: There is no explicit requirement, so the court will decide and if in doubt: There is no requirement to supply instructions.
      Mike posted the boot messages which contain something interesting:
      > Image Name: Linux-2.6.39+
      > Image Type: ARM Linux Kernel Image (uncompressed)
      An uncompressed image, U-Boot as boot loader and pretty obvious serial interface may mean, that Flir does not care to much about hacking the FlirOne.
      Similar as canon accepts the hacking of their camera firmware.
      After all: I think the flirOne is more marketing then the future of thermal imaging. It is a relatively low priced, fancy gadget to introduce people to thermal imaging and the brand Flir.
      Using Linux is - at least for me - still surprising, as the higher end models use windows. Did flir intended the hacking of the FlirOne? I mean: Nothing better then viral marketing, but is it intentional or accidental?

  • @SinanAkkoyun
    @SinanAkkoyun Před 5 lety

    Could you please try to hack the 30Hz out of this Lepton module? I just cannot affort to buy >100 units to get them.. I would really love if you could find anybody who has a Lepton 3 module with 30 Hz :)

  • @o0julek0o
    @o0julek0o Před 10 lety

    What do you do for a living, Mike?

  • @TheEPROM9
    @TheEPROM9 Před 10 lety +2

    You can count me as interested in this project, I would love to get a cheap thermal imaging camera up and running.
    I would love to see these moduals sell on places like RS.
    This does put my printer hack to shame, but we all have to start somewhere =-)

  • @devnull7970
    @devnull7970 Před 9 lety

    So fascinating!

  • @leorio021
    @leorio021 Před 7 lety

    GREAT VIDEO !!! i am from Brazil and i can`t pay 200 pounds on a PureThermal breakout... i got an lepton 3 for a prize from flir, i need to get analog video out for my drone... how to do this spending less money ?
    can i use this board: Stm32f103c8t6 Stm32 Arm Cortex-m3 ?

  • @Lion_McLionhead
    @Lion_McLionhead Před 10 lety

    All that I2C probing & socket construction, only to never use it. Why does everyone build these crazy analog video schemes instead of a USB output?

  • @iknowsstuff
    @iknowsstuff Před 10 lety +1

    so when can we get a raspberry pi thermal camera????????

    • @mikeselectricstuff
      @mikeselectricstuff  Před 10 lety

      Just as soon as you can get a Flir One and write some code

    • @yaghiyahbrenner8902
      @yaghiyahbrenner8902 Před 10 lety

      I'm a "simple peasant savage" from south africa as well chap, just use an alternative sensor for now. lol dont make us sound so savage lol

  • @tommasodesolda3261
    @tommasodesolda3261 Před 10 lety

    Where did you learn about electronics?

    • @electronash
      @electronash Před 10 lety +11

      Hogwarts? lol

    • @GadgetUK164
      @GadgetUK164 Před 10 lety +5

      electronash LOL! You certainly would think so, what he does is pure magic.

    • @jguy584
      @jguy584 Před 10 lety +2

      IIRC, he is mostly self taught.

  • @dtiydr
    @dtiydr Před 6 lety

    The 7 thumbs down was from some key employers at FLIR.

  • @laneboysrc
    @laneboysrc Před 10 lety

    Awesome reverse engineering as usual. What a joy to watch!

  • @Razor2048
    @Razor2048 Před 10 lety

    They need to really deliver a 30-60FPS thermal imaging sensor. Also is that a hardware limitation for the 1 update every 3 frames, or did they get so use to console gaming that they just cannot understand what a low frame rate is , and thus did not get around to fixing it?
    It seems that flir makes 720p thermal imaging sensors for the military that they are already shipping, why can't they simply take those units and glue a smartphone case to them and then add a connector for smartphones?

    • @kalhana1
      @kalhana1 Před 10 lety

      Seriously? Sell a military grade system that probably costs thousands of dollars if not more for $350? It costs that much because you don't simply pluck a 720p sensor from a tree. It takes years of R&D cost which they have to get back and the manufacturing process doesn't yield 100% perfect sensors meaning there is extra cost specially when die sizes increase.
      They probably up the frame rate in that way to make it conform to standard video frame rates when saving as video files.
      Anyway, even the E4 can only do 9fps. This is not meant for playing call of duty, for most thermal applications, the changes in temperature are relatively slow.

    • @iknowsstuff
      @iknowsstuff Před 10 lety

      kalhana1 I believe there are government restriction on thermal sensors for sale to the public. they are probably worried that the Taliban are gonna start building home made heat seeking rockets or something.

    • @kalhana1
      @kalhana1 Před 10 lety

      iknowsstuff Interesting. Does it mean no one can sell discrete sensors? Or do they inflate the price of consumer products? Because you can certainly buy 60fps Flir cameras (not 720p as far as I know), although expensive.

    • @mikeselectricstuff
      @mikeselectricstuff  Před 10 lety

      kalhana1 TICs and sensors >9fps or >111Kpixels require export license. Below that the only restriction is you can't ship to embargoed countries.

    • @kalhana1
      @kalhana1 Před 10 lety

      mikeselectricstuff Oh ok, we have a T420 in the uni. But I guess they went through the export license procedure. As it's for research, they must be ok with sending from US. Not sure how difficult it is for industrial use in UK or for individuals.

  • @thinkaboutitagain
    @thinkaboutitagain Před 10 lety

    Tremendous video.
    My one correction is how to pronounce "Linux".
    Linux Pronunciation

  • @leppie
    @leppie Před 10 lety

    Mike, you are a god!

  • @mdesm2005
    @mdesm2005 Před 10 lety

    I get "502 Bad Gateway" when I try dorkbotlondon.org/ what does that mean?

  • @AntonioBarba_TheKaneB
    @AntonioBarba_TheKaneB Před 10 lety +1

    Ok Mike, you are pretty good, but now try this again blindfolded and one-handed. :D

  • @jekader
    @jekader Před 9 lety

    Really impressive reverse engineering! Hope thermal imaging becomes a commodity very soon.

  • @OK2BCK
    @OK2BCK Před 10 lety

    brilliant

  • @JohnMcclaned
    @JohnMcclaned Před 10 lety

    2:13 was christmas come early haha. I have no idea what you're doing most the time but it's fucking interesting.
    How did you learn all this? I understand it comes from experience but did you have a mentor or something because you genuinely know your shit.

  • @gamebent
    @gamebent Před 10 lety

    Awesome

  • @TheStevenWhiting
    @TheStevenWhiting Před 10 lety

    Genius

  • @jimmimak
    @jimmimak Před 7 lety

    Maybe Farnell, RS or somebody could buy the MOQ of Leptons and release them into the wild?

  • @DanFrederiksen
    @DanFrederiksen Před 10 lety

    Everybody knows that you can't kill a person with 9Hz thermal sights. Chance in a million.

  • @MrTridac
    @MrTridac Před 10 lety +3

    Rosebud!

    • @NerdNordic
      @NerdNordic Před 10 lety +1

      Gay! ;)

    • @redtails
      @redtails Před 10 lety

      I bet the password is Kane, or Citizen or something along those lines ;)

  • @Pyro19903
    @Pyro19903 Před 9 lety

    thanks mike i was always wondering a bout the lepton thanks nice proto pcb i saw a vid on it on EEVblog

  • @arekx
    @arekx Před 10 lety +1

    Network and sshd starting? Heh.

  • @NerdNordic
    @NerdNordic Před 10 lety

    This will make a fine NV! ;)

  • @africanelectron751
    @africanelectron751 Před 10 lety

    Expert level compared to Dave Jones stuff right here....now pardon me while i have a brain aneurysm.

  • @90SecondsofAviation
    @90SecondsofAviation Před 10 lety +2

    Combine this with those shitty video glasses You recently tore down.... but first try to make patent so nobody steals idea lol

    • @sarowie
      @sarowie Před 10 lety

      Flir used to build thermal imaging cameras for fire fighters.
      Look up "FireFLIR 110 Thermal Imager" and rethink it.

    • @90SecondsofAviation
      @90SecondsofAviation Před 10 lety

      sarowie I know about Fireflir but compare the sizes man.....

    • @sarowie
      @sarowie Před 10 lety

      use the force
      look up the very product I mentioned.
      Still you are right: With this module, a decent priced video glass (not the cheapy mike teared down) and a video modul it would be possible to create an amazing product. (One eye Infrared, one eye visible, switchable to both visible light and both infrared...) But stay fare away from patents. What Mike is doing may interest Flir Marketing and maybe their Semiconductor Supplier. Marketing is happy, because some geeks will buy a FlirOne just get a chip. The Semiconductor Group will also be happy. Either they participate in the FlirOne sales or their chip gets sold separately.
      But when it goes to patents... I would not wonder when flir was or is holding one or more that describes a head mount thermal image system. And lawyers are less friendly then marketing guys and engineers.

  • @cuckingfunt9353
    @cuckingfunt9353 Před 6 lety

    FFS dude, you're out of your mind. , , Startreck is missing one of it;s crew.

  • @Fan119
    @Fan119 Před 10 lety +1

    First

  • @juhoheikkonen9204
    @juhoheikkonen9204 Před 10 lety

    Thermal nanocam
    czcams.com/video/CsKd8wNWzYU/video.html
    ?