Building a DIY CT/CAT scanner for 200$

Поділитися
Вставка
  • Опубліковано 13 чер 2024
  • In today's video, I made a working CAT/CT machine that can look into objects and people in 3 dimensions! Using some hardware from previous videos such as an X-ray tube, High voltage DC power supply, and an Arduino to control it, a working CAT scanner was made! Commercial CT/CAT scanners cost anywhere from $40,000 USD! to 2.2 million USD! Where I made mine for $200 but it's a lot lower quality as is to be expected.
    Warning performing the actions seen in this video can be dangerous. X-rays cause cancer and radiation burns, enough exposure can be lethal! This project also uses high voltage which can be extremely deadly!
    Enjoy! :)
    ------------------------
    More info on CAT/CT scanners: en.wikipedia.org/wiki/CT_scan
    more info on tomographic reconstruction: en.wikipedia.org/wiki/Tomogra...
    Stanislav’s website! : elektronika.kvalitne.cz
    ------------------------
    Tik Tok: / pyrotechnical_
    Odysee: odysee.com/@Pyrotechnical:3
    Patreon: / posts
    Discord server: / discord
  • Наука та технологія

КОМЕНТАРІ • 266

  • @chemistryofquestionablequa6252
    @chemistryofquestionablequa6252 Рік тому +372

    I often wonder what the limits of of what we could make if you got all the UA-cam science nerds together with a moderate budget. I bet that not much would be off the table. Great video!

    • @PyrotechnicalScience
      @PyrotechnicalScience  Рік тому +72

      We’d at least have the capabilities of a small university.

    • @chemistryofquestionablequa6252
      @chemistryofquestionablequa6252 Рік тому +59

      ​@@PyrotechnicalScience we'd be a massive security threat, lol. You just know that Cody would want to build a nuke.

    • @PyrotechnicalScience
      @PyrotechnicalScience  Рік тому +43

      @@chemistryofquestionablequa6252 lol I was just thinking that! Our biggest challenge would be government intervention 🤣

    • @simonwatson5299
      @simonwatson5299 Рік тому +15

      @@chemistryofquestionablequa6252 Nah, build a fusion reactor!! (The fact that nobody has built one sucessfully, ever, might be a challenge though). Or improve on the old Soviet Radioisotope thermoelectric generators, that were portable (kinda).

    • @chemistryofquestionablequa6252
      @chemistryofquestionablequa6252 Рік тому +14

      @@simonwatson5299 those things are kinda terrifying, mostly because there are some just rotting away in Siberia.

  • @Steelplayer59
    @Steelplayer59 Рік тому +53

    Absolutely incredible that this works as well as it does. After working 4 decades in control systems, I would recommend programming at least one more additional button on your remote - an E-Stop (emergency stop) button to instantly halt the x-ray and high voltage power supply, should someone (or possibly a pet) enter into the area unexpectedly. Impressive that you researched this so completely. Well done!

  • @charleschidsey2831
    @charleschidsey2831 Рік тому +159

    Bravo my friend! I was in medical school in the 1970’s when the first CT scanner was developed by the engineering branch of EMI Limited in London, England. They were better known at the time as one of the four largest music publishing companies in the world. I believe at one time they owned the rights to the entire Beatles catalogue. I spent 41 years doing general surgery and, without a doubt, the CT scanner was the most useful of all the technologies in my medical toolbox. Originally it was only able to perform brain imaging and the scans were quite pixelated but, of course, the technology rapidly improved and eventually it was applied to all parts of the body. In the space of about a decade, “exploratory laparotomy” (opening a patient’s abdomen to find out what was causing pain, infection, obstruction, bleeding, etc.) became nearly obsolete. Currently a surgeon generally knows a lot about what he/she will find before the patient ever reaches the operating room allowing for careful preplanning of the procedure. I recall many exploratory surgeries early in my career where there were at least a half dozen possibilities going in. Surgeons had to essentially be ready for almost any eventuality. This forced a very rapid assessment, diagnosis and treatment plan while the surgery was in progress. This was exciting to say the least but also very stressful. It is rare nowadays to be in that sort of situation, though it still sometimes occurs when a patient’s condition is too unstable even to perform a brief CT scan. Excellent work young man. When I read the title of your video, I thought perhaps you misunderstood the complex nature of the reconstruction algorithm. Turns out I was the one trying to keep up with your explanations and logic. Sir Godfrey Hounsfield shared the Nobel Prize for his work in developing computed axial tomography, perhaps one day you might help invent some new technology to make the world a better place. I’m rooting for you.

    • @gregorymalchuk272
      @gregorymalchuk272 Рік тому +2

      What kind of computers were they using to collate the x-ray scans and render a graphical result?

    • @Smytjf11
      @Smytjf11 Рік тому +4

      Should I not be feeling like I'm watching a kid play with a live grenade?

    • @jamescostello6529
      @jamescostello6529 Рік тому +7

      @@gregorymalchuk272 I believe it was DEC computer and the output was to a dot matrix printer. I had one done of my head at John Hopkins in 1974.

    • @izybit
      @izybit Рік тому +6

      @@Smytjf11 These radiation levels aren't really that dangerous unless you sit in front of it for extended periods of time. If anyone knows how to use these components they also know not to stay next to them while operating.

    • @charleschidsey6192
      @charleschidsey6192 Рік тому +6

      @@gregorymalchuk272 they are mostly proprietary and sold with the scanner by companies like GE, Siemens, Toshiba, etc. most are about the size of a home refrigerator though I don’t know if most of that is taken up by memory modules. That’s why I was skeptical that the UA-camr could perform the spatial reconstructions using a laptop, but he proved me wrong. What’s more, this was just his initial attempt. He could refine this significantly using an old microwave oven with rotating platform as was suggested by another commenter.

  • @bilinguliar
    @bilinguliar Рік тому +151

    Your beeper code does not give enough time for LOW. It does HIGH for a second, goes to LOW and immediately back to HIGH. What you need is another pause after the LOW.

    • @jhyland87
      @jhyland87 Рік тому +3

      Well done.

    • @Shinobubu
      @Shinobubu Рік тому

      need to hold HIGH and LOW through prolonged increments.

    • @the555timer
      @the555timer Рік тому +4

      for(int i = 0; i < 45; i++)
      {
      digitalWrite(2, HIGH);
      delay(1000);
      digitalWrite(2, LOW);
      delay(1000); // this is what you were missing
      }

    • @ame7165
      @ame7165 2 місяці тому

      even better is to just use PWM. the atmega's default clocks put all of the PWM frequencies in the human audible range, so you can just set PWM to 50% duty cycle, wait one second, then turn it back off. no need for a loop. example from memory: (it's been a minute since i touched an arduino so double check the syntax lol)
      // i believe this is one of the PWM pins, and i think it's in the low kHz range
      int beeperPin = 6;
      pinMode(beeperPin, OUTPUT);
      // beeper on. this is 127 of 255, so 50% duty cycle square wave. (and it's 255 because it's 8-bit, and that includes 0, so it's 256 total)
      analogWrite(beeperPin, 127);
      // let it beep for one second
      delay(1000);
      // beeper off
      analogWrite(beeperPin, 0);

  • @nasiriyah110
    @nasiriyah110 Рік тому +17

    I fix CT scanners for a living. This is pretty darn cool!! When you started out, I was trying to figure out how you were going to make all of that rotate around your “patient.” You simply rotated your “patient” itself. Well done! You need to get into this business!!

  • @spr00sem00se
    @spr00sem00se Рік тому +16

    Excellent.
    I've not watched all of it carefully so you may have addressed it.
    Be careful to not overheat the tube. They are normally submerged in oil and temp controlled.
    And buy yourself a digital dose meter. Don't mess around with xrays and cancer.

  • @maxhouseman3129
    @maxhouseman3129 Рік тому +16

    Really nice job! Your sense of humor is so awesome 😅
    I am a medical engineer (BA and MA degree) and it really reminds me of all that nice experiments during study.
    Keep it up! Maybe medical engineering is also the right choice for you 😊
    For the next upgrade, you could possibly use a raspberry pi and place a fixed camera on a rig. You could then just export full reconstructed datasets

  • @sfertman
    @sfertman Рік тому +12

    While not medical grade, it still demonstrates the working principle and actually extremely useful for imaging internal structures of all sorts of things!!

  • @justinbanks2380
    @justinbanks2380 Рік тому +5

    Someone found a damn use for those crappy buttons on the Roku remote!

  • @robertneighbors3520
    @robertneighbors3520 4 місяці тому +1

    The nerd glasses - - absolutely awesome. Dang, we need thousands of more STEM kids like this, instead of the vast majority of kids his age staring at their cellphones all day and night.

  • @ErikPelyukhno
    @ErikPelyukhno Рік тому +9

    It’s mad impressive that this is actually functional, good job!! Thanks for documenting and explaining your discoveries

  • @johanlindeberg7304
    @johanlindeberg7304 Рік тому +6

    Impressive! If you are doing this much do not forget radiation safety!

  • @Emiko1
    @Emiko1 Рік тому +8

    The piezo buzzer not staying on for the specified time is because you need to delay after setting the pin to low, otherwise the code loops then immediately sets the pin high again, not giving any time to stay off, if you want a period of 1 second high and low then you can do that but if you want a total interval as 1 second so time it takes for the buzzer to go on and off then repeat, you would delay for 500 ms after setting pin 2 high and then after setting pin 2 low delay for another 500ms.
    Feel free to tweak these values to achieve what you’re looking for.
    May i recommend HIGH for 1000ms & LOW for 500ms

  • @Embassy_of_Jupiter
    @Embassy_of_Jupiter Рік тому +30

    There is a pretty cool method for photogrammetry called Neural Radiance Field (NeRF), it uses neural networks to quickly align phots and reconstruct 3D scans from them. But I think it only generates shells and not volumetric density maps like this. Would be cool to combine those two to make scans extremely fast and accurate.

    • @morgan0
      @morgan0 Рік тому

      i’m curious what it would do with the images. i don’t think it creates a 3d model but uses the neural net to decide what a pixel should look like, based on how it can recreate reflective objects, so it might work

    • @Cam-wu9jw
      @Cam-wu9jw 4 місяці тому

      They're awesome but NERFs dont see inside objects. I agree combining them has potential tho

  • @that_blue_ch3vy
    @that_blue_ch3vy Рік тому +7

    Honestly I didn't expect much but my expectations have been blown away

  • @tttuberc
    @tttuberc Рік тому +2

    You are so smart at such a young age. Great project and very good concept. I've wanted to do a home made xray for a long time. This seems to have all the ingredients I need and extra great stuff. Love the info about reconstruction of the 3d object

  • @tannerbass7146
    @tannerbass7146 Рік тому +2

    Protip man, build a little lead or steel vault for that thing to protect yourself AND remove background radiation that is noising up your image.
    Then get yourself a survey meter and make sure you are keeping exposure outside the vault to 5mr/Hr or less.

  • @judebox1185
    @judebox1185 Рік тому +1

    Sweet, been waiting for this video. Great job and results.

  • @thatslogan1
    @thatslogan1 Рік тому +2

    I’m not going to lie, most of this video confused the hell out of me, but this is actually amazing. I’d love to see what else you come up with, could be saving lives man🙏🏻

  • @al3k
    @al3k Рік тому +1

    This is going to be absolutely golden info for after the apocalypse. Thanks man. Good stuff!

  • @jerome1lm
    @jerome1lm 12 днів тому +1

    I love the evil mad scientist energy!

  • @SciHeartJourney
    @SciHeartJourney Рік тому +9

    This is a great idea for making your own X-ray inspection equipment; welding, solder balls on BGA components, failure analysis, etc..
    It was smart to use the remote control to keep away from the X-rays!
    If you don't know Matlab, it's not that bad. You can use Octave and get up to speed with Matlab for free (nearly the same).
    Python also has LOTS of tools, but Matlab is great for doing this vector math in real time though.

    • @SciHeartJourney
      @SciHeartJourney Рік тому +2

      Just like Matlab has Simuling, Octave has Scilabs. They're a LOT of tools to get things done at a high leve, very fast. It's like how Python has a lot of tools out there to use for free.

    • @maxhouseman3129
      @maxhouseman3129 Рік тому +1

      Python has a lot of modules for medical engineering, image reconstruction, signal analysis etc. And all for free.
      I used it a lot at university (studied medical engineering).

  • @killsalot78
    @killsalot78 Рік тому +3

    man all you gotta do is build a nice rig that keeps the scanner actually true with what its looking at and this thing is already good enough for a lot of scanning projects, still impressive what a cardboard box can do

  • @mbunds
    @mbunds Рік тому +2

    THANK YOU!!!! Now I understand the difference between CAT/CT and MRI; before your production I thought these were similar systems. Was I ever wrong, thanks again!

  • @SB-KNIGHT
    @SB-KNIGHT Рік тому +4

    Damn this is really cool! Also props for using a remote control system unlike some other youtubers... Well done, really inspiring!

    • @davidconner-shover51
      @davidconner-shover51 Рік тому +1

      StyroPyro comes to mind.
      That dude would tickle the dragon with a flat bladed screwdriver

    • @SB-KNIGHT
      @SB-KNIGHT Рік тому +1

      @@davidconner-shover51 🤣

  • @johnnyunfiltered1832
    @johnnyunfiltered1832 Рік тому +1

    Arduino needs to sponsor this man

  • @chuck2501
    @chuck2501 Рік тому +1

    dude, seriously impressive.

  • @stephengfazio
    @stephengfazio Рік тому +3

    I’m an electrical engineering student and this is the type of tomfoolery shenanigans I signed up for. Oddly enough, I too am guilty of searching for old ultrasound and X-ray machines, and yeah they’re all out of my student budget. Thanks so much for sharing
    I might consider doing a version of this project for my signals and systems class and maybe get into signal processing more. I’m really interested in ultrasonic levitation and phased arrays for the purpose of capturing mosquitos and other small insects 🐜 muahaha

  • @johnkelly7264
    @johnkelly7264 Рік тому +1

    This is all so interesting, and love the technical detail. Subbed here!

  • @chuxxsss
    @chuxxsss Рік тому +1

    Well done, you are very brilliant. You did well finding the parts.

  • @chrishayes5755
    @chrishayes5755 Рік тому +3

    your skillset is deadly 🔥🔥🔥
    cool project

  • @algorithminc.8850
    @algorithminc.8850 Рік тому

    Really enjoyed your set of videos on X-rays. Thanks. Subscribed. Cheers.

  • @invalidation
    @invalidation Рік тому

    Bravo for the execution and the presentation!

  • @snorman1911
    @snorman1911 Рік тому +1

    Nice job! What a cool project. Always wondered how that back projection worked on imaging like this.

  • @kevinfelker5544
    @kevinfelker5544 Рік тому

    Your videos are so kool. U actually explained this so well. Keep making great content like these videos.

  • @jimsamson7934
    @jimsamson7934 Рік тому

    After hearing about the Therac-25 story, I would never want to mess with X-ray equipment. Especially if you're relying on a wimpy arduino as your control board.

  • @jamesmurphy7442
    @jamesmurphy7442 Рік тому

    Love the shielding being used, or not in this case.

  • @mapleleaf4ever
    @mapleleaf4ever Рік тому +4

    That was friggin' mint! Well done with a budget. I'd say you got better than $200 of image quality as that looks about as good as some airport scanners. lol

  • @petermarin
    @petermarin Рік тому +4

    I’d be careful about that direction of the x-rays since you’re not using proper shielding. It’d be terrible to give cancer to your neighbours..

  • @nhand42
    @nhand42 Рік тому

    When I was in school my science fair project was a bi-carb volcano. Kids these days are so much more advanced.

  • @TestEric
    @TestEric Рік тому +3

    Amazing work. You're lucky to get a high voltage power supply that works for $60. I've been in the market for one for years.

    • @PyrotechnicalScience
      @PyrotechnicalScience  Рік тому +7

      Made it didn’t buy it, that’s why it’s so cheap

    • @TestEric
      @TestEric Рік тому +2

      @@PyrotechnicalScience I just discovered your channel. Knowing you built that I'm starting to think I found my new favorite channel. Fantastic job.

  • @dmacpher
    @dmacpher Рік тому

    Holy smokes! This channel is going places!

  • @airborne0x0
    @airborne0x0 Рік тому

    Nice job, this is great. Stay safe with it.

  • @aga5897
    @aga5897 10 місяців тому

    Absolutely Awesome !
    Superb project, very well done !
    Don't take any crap about the arduino code - if it works, it's good.
    Sure it could be better, so could we all.

  • @TheBlackFoxMaster
    @TheBlackFoxMaster Рік тому +1

    Помню в сериале девяностых Вэлари Айронс Протэкшен показывали такой. За 30 лет ничего не поменялось.

  • @j.h.656
    @j.h.656 Рік тому

    Very nice channel, hope you keep it up and grow a ton

  • @Shinobubu
    @Shinobubu Рік тому

    Here comes the Arduino kit.. THERE IT IS!!!

  • @hullinstruments
    @hullinstruments Рік тому +1

    Scrap yards. That's where I find my x-ray machines and I've even found a CT and other more niche machines. With the older ones just be careful about the pcbs in the high voltage oil
    Buddy of mine runs a local industrial salvage yard, but they also take just general scrap from the public. Not many people allowed to look around in there but he lets me come in whenever I want. I bought a half a dozen x-ray machines over the last 4 or 5 years. Some of them old nice film types, some of them super modern Siemens digital wrap-arounds. You can find a scrap yard and make friends, you'll definitely get some X-ray and medical stuff from time to time... But here's the key... You need to find out who the clients were that brought it and talk to them. In my case it was a guy who owns a business repairing, setting up, and brokering all types of machines like that. So he gave me a heads up when he was bringing the remains of a CT to the yard. That way I could get it before it hit the ground and receive damage. you'd be amazed what kind of stuff comes in these scrap yards. The smaller family-owned yards are usually the only ones that will let you come in and buy. But a few boxes of cookies and a polite attitude... And they'll keep your number on their desk and call you when certain things come in.
    A lot of corporations have bought out so many of the small scrap yards and they won't even let their own employees buy from them because of the liability. So you have to find a family-owned or smaller scrap yard. I pay around $0.05 per pound which means I got those x-ray machines for between 15 and $25 according to their weight.
    Some of the smaller scrapyards might not have a portal scanner or monitoring system. Basically that type of system is something you would find at airports, customs, and a tractor trailer weigh in stations. It's a super-sensitive scintillating Crystal detector probe and a radiation monitor with alarm. You can pick them up on eBay from time to time for pennies on the dollar. At the very least I would get a good Ludlum m and a good sensitive scintillation probe detector. Because scrapyards can get some really spicy things from time to time and they might not even know it. I've got a collection that includes some really spicy things. One of which my scintillation probe started singing and freaking out when I was more than a half a mile away from the yard. I guess it helps to be near Chattanooga Tennessee and just right next door to oak ridge national Lab. That's not necessarily were some of the radiation sources came from, but due to the huge history of radiological events and development around here... The stuff just seems more prevalent. The spiciest thing I ever foundis something similar to what I mentioned above. It is in a 5-gallon bucket with LED flashing wrapped around it about 6 in thick on all sides. That is submerged in a 50 gallon drum of water and kept in my storm cellar away from the house and underground. So yeah spicy to say the least and I was very lucky to find something like that and prevent my buddies or anybody else at the yard getting exposure. This is happened multiple times with similar situations. Sometimes not so spicy but sometimes super hot and scary. Calling the proper authorities and people with the experience to remove stuff like that... A lot of times they will come and check it out and unless it's something weapons-grade or something truly truly dangerous they won't even confiscate it. Although they will find the yard for not having portal in area monitors. They're more interested in getting the tag number of the dude who brought it and all the pictures taken by the yard so they can track them down and see what else they might have.

  • @WisdomEDM
    @WisdomEDM Рік тому +1

    That'd be dope to compare sieverts to a modern x-ray machine

  • @TechneMoira
    @TechneMoira Рік тому +7

    Very ingenious setup :) This is what I imagine raw unfettered experimenting with simple means should be. Nicely done, but please remember that Xrays are not a trivial thing ! Always take the necessary precautions. I'm curious how far you'll take the concept :)

    • @davidconner-shover51
      @davidconner-shover51 Рік тому +4

      hence, why he was across the yard.
      BTW, I helped build a general medical scanning facility once, the Xray and CT scanner rooms were lined in lead along the sides.
      the MRI room was lined in copper sheeting

  • @chrisharder1870
    @chrisharder1870 10 місяців тому

    Great content very interesting young man!!!

  • @riscy00
    @riscy00 Рік тому

    Wow that was good video..... I now know. How. It work great work!!

  • @jameslucarelli7172
    @jameslucarelli7172 Рік тому

    oh my gosh dude this is awesome. im only slightly jealous cause ive had a simillar idea for a while now but ive gotten distracted by other projects im working on

  • @beppe3001
    @beppe3001 Рік тому +3

    Great video! From the point of view of en electronic engineer what you've done is very cool but also I don't see any disclaimer - explanation about X-ray safety. I'm pretty sure that you know risks of ionizing radiation expoasure and extremely high voltage but must consider that viewers might not know it! I'm sorry to bother about safety but I think it is very important, expecially for the most unexperienced viewers, and since you are giving the information (through the video) it is your responsability.
    Hope I've pass the message without being too much annoying, peace :)

  • @devilmastah
    @devilmastah Рік тому +18

    I am actually working on the same thing but a bit more refined 😅 also made a tool in Matlab that outputs a full CTscan file (stacked png) or pointcloud from the scans :) If you want to give that a try leave me a comment.

    • @PyrotechnicalScience
      @PyrotechnicalScience  Рік тому +3

      Oh most definitely! You can email me or discord!

    • @devilmastah
      @devilmastah Рік тому +1

      @@PyrotechnicalScience i will get back to this in a few days, catched corona 😅 i already had a look and want to recompile the newest version before i send it to you

    • @davidconner-shover51
      @davidconner-shover51 Рік тому +2

      I can just imagine handing the doc a CT scan file made from a homemade CT machine of my broken arm. lol

  • @MBaltz
    @MBaltz Рік тому +1

    Very nice video!!

  • @markmalonson7531
    @markmalonson7531 Рік тому +1

    This is great wow. Question what about radiation cell damage from exposure to x-rays is there shielding etc?

  • @May-pu8rs
    @May-pu8rs Рік тому

    Hello, you have a beautiful mind. Keep posting videos
    😍

  • @Bianchi77
    @Bianchi77 Рік тому

    Nice video, thank you for sharing it :)

  • @blacklabel6223
    @blacklabel6223 Рік тому +1

    Incredible! I wonder how much more accurate it would be with tiny increments like 0.4 degrees per image. How much radiation do they emit? I wonder how long before it would “damage” a person. I’m also imagining if you built a slow revolving almost circular train track, you could have the hardware rotate very slowly and work well. If you had a vertical track on a wall, a patient could stand against a wall while it moved up in 1ft increments and revolved slowly. Obviously very slow and crazy work to develop but it would make ct machines an affordable household appliance.

  • @zebo-the-fat
    @zebo-the-fat Рік тому

    That is very impressive!

  • @markmalonson7531
    @markmalonson7531 Рік тому

    Beautiful

  • @Cultleader1984
    @Cultleader1984 Рік тому +4

    It kinda blows my mind it's still cheaper to build a CT scanner than get a CT scan here in the US 😂

    • @stickyfox
      @stickyfox Рік тому +1

      We're the only country with a privatized for-profit healthcare system. :(

  • @PedroHenrique-xm1yt
    @PedroHenrique-xm1yt Рік тому +1

    Great job! One thing, it's probably much harder and slightly questionable regarding safety, but if you manage to run the tube at full power (not sure how many kV you are using) you can probably record video directly of the intensifying screen, then you just do a pretty quick 360spin and then extract the frames, are you using long exposure for the pictures? Excellent video, and sorry if it's something you already considered hahahaha

  • @_c_y_p_3
    @_c_y_p_3 Рік тому

    Ok guy, I have DIY tattooed on me but this fella earned it, this is hardcore DIY.

  • @koaafffx
    @koaafffx Рік тому

    its crazy you are so smart bro

  • @jchulski19
    @jchulski19 Рік тому

    this is the best most dangerous thing i'v ever seen

  • @BrawnyAi
    @BrawnyAi 4 місяці тому

    Great stuff!

  • @asoteunh345
    @asoteunh345 Рік тому

    Awesome video!

  • @AmaroqStarwind
    @AmaroqStarwind Рік тому +3

    Random idea: an Ionizing Radiation Detector peripheral for the original GameBoy. The more cost effective you can make it, the better.
    You could collaborate with “The Thought Emporium” and/or “stacksmashing”.

  • @needsmorecoffee
    @needsmorecoffee Рік тому +1

    6:40 Still way better than the software written for the Therac-25 😂
    Nice project bro

  • @glennfelpel9785
    @glennfelpel9785 Рік тому

    I believe you need a delay (1000) or so after the digitalwrite(2, LOW); statement. After the digitalwrite(2, LOW) you are immediately going back to writing it high again.
    Wonderful video

  • @karlswanson95
    @karlswanson95 Рік тому

    Enjoyed your video. Have you considered doing video on x-ray fluorescense spectroscopy?

  • @seeigecannon
    @seeigecannon Рік тому +1

    Great video. I have some code suggestions though. Note: this is not in any way intended to be a roast.
    First, as you are in a very agressive enviroment where you can get random bit-flips, you should add a watchdog timer to the code. This is on the hardware where if a function isn't called for too long it assumes the MCU crashed and it will reboot it where you can re-initialize all of the outputs into a safe state.
    Second, your code is very slow (as in one loop will take many minutes) because you have a lot of blocking code (a delay(1000) will have the execution sit there until it is finished with that line). This makes it difficult to react to any other inputs you may want to add later (like a cancel button). Instead, you should have something more like this pseudo code:
    #include //real code, needed for watchdog
    setup(
    wdt_enable(WDTO_2S); // Real code, Enable the watchdog with a timeout of 2 seconds
    )
    loop(
    wdt_reset(); // Real code, Reset the watchdog if this isn't called before 2 seconds then the arduino will reset itself
    if(startButtonPushed || motionRunning){ //see if the enable button has been pushed or if the program is already running
    if(!motionRunning){ //check to see if motion is already running to initialize the running variables (pushing the start button again doesn't do anything)
    startTime=millis(); //read current time
    motionRunning=true; //tell the program it is running
    angleStep=360/destiredResolution; //save a variable so the program knows when it is done
    currentAngle=0; //reset this counter
    }
    }
    if(millis()-startTime>=1000){ //here is where it gets good. The arduino is running the main loop as fast as it can (many thousands of times per second), this checks to see if one second has passed, if it has then it will do stuff
    takePicture(); //call function to tell camera to take a picture
    moveTable(); //start table motion
    startTime=millis(); //record new time
    currentAngle=currentAngle+angleStep; //update table rotation position
    if(currentAngle>=360){ //check to see if a full rotation has completed, if it has, shut down the program
    motionRunning=false;
    }
    }
    if(stopButtonPushed){ //having non-blocking code allows a stop button to be constantly checked
    motionRunning=false;
    }
    }
    If you have any more questions I can help out and would even be willing to make something that actually compiles. Keep up the good work.

  • @ssundgaard
    @ssundgaard Рік тому

    This is so janky! I love it 🎉

  • @illegalcoding
    @illegalcoding Рік тому

    Great video!

  • @realcygnus
    @realcygnus Рік тому

    Nifty ! You seem to have quite a lot of technical knowledge/skills, especially for such a young'n. I think its a safe bet that we can expect more great things from you. Instant sub ! 👍 Yup, I did say young'n BTW. 🤪

  • @TheSpookiestSkeleton
    @TheSpookiestSkeleton Рік тому +2

    Okay I had no clue they went as low as 39k, that's scary

  • @Sazoji
    @Sazoji Рік тому +2

    oh for that loop at the end it's going low then immediately back high when the loop starts again, add another wait in the loop

  • @horscategorie
    @horscategorie Рік тому

    There is hope for the future.

  • @TT-lf5hi
    @TT-lf5hi Рік тому +1

    Very cool. MATLAB is good and is very well documented so any problems you have can usually be resolved by doing a google search. Also, going into the deep end is always a learning experience, MATLAB might be worth it if you do simulations or data analysis.

  • @alexanderrolfe7620
    @alexanderrolfe7620 Рік тому

    7:25 It's probably been mentioned but the issue with the buzzer staying on is that it turns off at the end of the loop cycle, but then immediately starts the cycle over turning itself back on. doing something like "buzzer on, wait 500ms, buzzer off, wait 500ms" would produce something similar to what you want.

  • @donaldhoot7741
    @donaldhoot7741 Рік тому +1

    Next up? Here Kitty, Kitty! Just kidding, I know, NO living things must be home scanned. Great video!

  • @trollenz
    @trollenz Рік тому

    That deserves a sub

  • @nedmacallen
    @nedmacallen Рік тому +1

    Young William Osman vibes haha
    Bring this to open sauce.

  • @alexkart9239
    @alexkart9239 Рік тому +1

    What do you think about building a scanner with an array of electronic sensors like those used by Peter Jansen? it can allow you to detect a weak signal directly, with higher sensitivity and much faster. The original "openCT 2" (can be found on 'hackaday') has a pretty low resolution, but signal-to-noize ratio is pretty impressive.

  • @amitaimedan
    @amitaimedan Рік тому

    Impressive...

  • @jg1772
    @jg1772 10 місяців тому

    Bro, how do you know all this stuff?! You don’t look very old. Awesome buddy!!

  • @JimmyZNJ
    @JimmyZNJ Рік тому

    Very cool project!! But if my doctor pulls out a setup like this I am running! lol

  • @SciHeartJourney
    @SciHeartJourney Рік тому

    I love this, but be very careful when using X-ray tubes!

  • @Xray-Rep
    @Xray-Rep Рік тому

    Awesome project! Can you provide some details about the X-ray source, such as the high voltage magnitude and the current (mA) that the tube draws? I have experience repairing dental X-ray machines, and so I have a good understanding of the circuitry and how it functions. Do you have a link to your construction details that you can share with others who might want to duplicate this project? THANKS!

  • @smallwhitebug7566
    @smallwhitebug7566 Рік тому

    wow amazing 😮

  • @maxvideodrome4215
    @maxvideodrome4215 Рік тому +1

    Awesome ! - hate to be your neighbor however - the x-rays

  • @MarkSpohr
    @MarkSpohr Рік тому

    Amazing!

  • @NicholasAndre1
    @NicholasAndre1 Рік тому +1

    Hmm curious how the crazy phone image AI that they use to improve the image interferes/helps. If it’s possible to find an app that turns off some of the magic would be good to compare. During scientific things it’s best to remove as much of the magic and apply it later, especially because it can vary from shot to shot.
    Also if you add a counter or something that was visible in the image it would help to map the particular degrees of a shot. Probably the best move is to integrate it with a Pi or something so you can correlate the shots with the actual data on rotation.

  • @OnnieKoski
    @OnnieKoski Рік тому

    Very cool! I’d love to see how to turn this into a 3d model in Blender or something.

  • @ethanbarnes3973
    @ethanbarnes3973 Рік тому +2

    See if chat got can upgrade your code for you?! Could be a neat quick video!

  • @HuthiHoti
    @HuthiHoti 2 місяці тому

    Thanks to you I'm going around offering free cat scans to cats

  • @arjbingly
    @arjbingly Рік тому +4

    I think it’ll be really cool to repurpose an old microwave machine to do this. Since it’s already got a turning table and stuff.

    • @PyrotechnicalScience
      @PyrotechnicalScience  Рік тому +3

      Hmmm you’re onto something there! I could lead shield it then replace the old electronics with my own, I’ll definitely probably try that in the future!

    • @arjbingly
      @arjbingly Рік тому

      @@PyrotechnicalScience yep, super excited to see it.

    • @Charlie8food
      @Charlie8food Рік тому +2

      @@PyrotechnicalScience the microwave motor would have to be a non standard one. The motors that I have found inside the microwaves take a random direction when they are turned on.

    • @PyrotechnicalScience
      @PyrotechnicalScience  Рік тому +1

      @@Charlie8food I’d just replace it with a stepper motor

  • @rkan2
    @rkan2 Рік тому

    Now I wanna see you make the thing that spins really fast 😂