#1836

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ธ.ค. 2024

ความคิดเห็น • 38

  • @Wayde-VA3NCA
    @Wayde-VA3NCA 8 หลายเดือนก่อน +9

    I once taught an Arduino class where we built up an led "dice roller" in steps. The dice project we used put a piece of wire on the ADC pin and we read the noise to seed the random number generator... A contrived example, but useful for teaching the concepts! 😊

    • @andymouse
      @andymouse 8 หลายเดือนก่อน

      Awesome !

  • @KeritechElectronics
    @KeritechElectronics 8 หลายเดือนก่อน +1

    Ha. I remember using a Tiny85 (or was it Tiny13?) for decoding RC5 remote control codes and controlling a motorized volume pot & selector relay in the "Little Red Devil" tube amp I built at the end of 2021. Debugging that thing was a pain in the ass until I realized what exactly went wrong - the chip's fusebits were set to expect an external crystal oscillator! Lessons learned.

  • @8antipode9
    @8antipode9 8 หลายเดือนก่อน

    Yeah, I also used an ATTINY (don't remember which specifically) and made a "dice roller" out of it, using LEDs arranged in a "dice-dot" pattern. It would roll a 1 to 6 on each push of the button, and come up with a random seed and store it so that every time to powered it on, it would start at a different seed. It was a fun little project, running off of a lithium pouch battery with one of those battery management boards.

  • @farzadb82
    @farzadb82 8 หลายเดือนก่อน +2

    If you have more than one Arduino, it's also possible to use another Arduino as an ISP programmer to program an Arduino. There's an example sketch in the IDE called ArduinoISP with instructions on how to hook that up.

  • @ericwazhung
    @ericwazhung 8 หลายเดือนก่อน +5

    Interesting thing about ATtiny85: It has a high-speed Timer/PWM peripheral that runs significantly faster than, but synchronized with, the uC clock... In case you need a random bit generator at upwards of 85MHz ;)
    (beware: cycle-counting, dead-timers, and assembly)
    With some careful

  • @DerekWoolverton
    @DerekWoolverton 7 หลายเดือนก่อน

    A couple companies made noise based random number generators way back when. Mostly based on AM radios that would then just sample the input for a zero or one. Got used in some secure cryptographic applications, as well as gambling machines (which is where I ran into them).

  • @YSoreil
    @YSoreil 8 หลายเดือนก่อน +2

    I wrote a gameboy emulator a few years back, that console also included a similar shift register based noise generator. You had a few control flags to select how it generated the noise and a 15/7 bit selector. The noise generator was mostly (only?) used for sound and quite a lot of games made very good use of it. Thinks like explosion sounds etc.

  • @charlesdorval394
    @charlesdorval394 8 หลายเดือนก่อน +2

    I'm literally currently building myself an ISP programmer :) Basically your board and the programmer into one hehehe
    I'm glad to see you sharing that sort of information!

  • @GeorgeGraves
    @GeorgeGraves 8 หลายเดือนก่อน +1

    I like the heavy chunk of plastic you have that mounted to - nothing worse the PCB's flopping around on your workbench. Also - RANT OF THE WEEEEEEEEEKKKKKKKKKKKKKKKKK!!!!

  • @Hellhound604
    @Hellhound604 8 หลายเดือนก่อน

    I love the ATtiny85. You can run them and their timers at quite a high speed (64Mhz reliably to 80Mhz) from the internal PLL. I use them in all sorts of weird single-chip projects.

  • @jimomertz
    @jimomertz 8 หลายเดือนก่อน +2

    Those ATTINY85 are used EVERYWHERE! I’ve always preferred microcontrollers over Arduino things, just for the size factor. Arduinos are too gigantic to put into any real project.

    • @andymouse
      @andymouse 8 หลายเดือนก่อน +1

      Arduino is an 'Ecosystem' not a gigantic thing there are hundreds of MCUs you can utilize from 8 pin and up "I’ve always preferred microcontrollers over Arduino things" that statement is bizarre as Arduino is microcontroller (MCU) how can you prefer an ATTiny85 ? It is one !!

  • @nyppy
    @nyppy 8 หลายเดือนก่อน +14

    There's actually no need to buy a dedicated programmer. Any Arduino can be used as a programmer for another chip by flashing the ArduinoISP sketch to it and then selecting "Arduino as ISP" from the programmer menu.

    • @bayareapianist
      @bayareapianist 8 หลายเดือนก่อน +2

      But you need to know what you're doing and find out the exact wiring.

    • @silverXnoise
      @silverXnoise 8 หลายเดือนก่อน +7

      @@bayareapianist…and Lord knows learning is a deal breaker in this hobby.

    • @bayareapianist
      @bayareapianist 8 หลายเดือนก่อน +1

      @@silverXnoise So does Google search engine.

    • @andymouse
      @andymouse 8 หลายเดือนก่อน

      @@bayareapianist Jeez, that is the whole reason Arduino exists 'Learning' this aint the hobby for you try trainspotting.

    • @BaldurNorddahl
      @BaldurNorddahl 8 หลายเดือนก่อน

      @@bayareapianist just ask chatgpt. No need to know what you are doing anymore 🙂

  • @jonathancocaud
    @jonathancocaud 8 หลายเดือนก่อน

    And you can add "delay(analogRead(A...));" in the loop() to control the bitstream frequency with a potentiometer :)

  • @ats89117
    @ats89117 8 หลายเดือนก่อน +1

    I guess the ATTINY85 must have pretty good protection against ESD. You were giving it a very rigorous test at the end of the video!

    • @jeffspaulding9834
      @jeffspaulding9834 8 หลายเดือนก่อน +1

      They seem pretty resilient as far as that goes. I played with ATTINY13s a lot a couple years ago, didn't take much care about ESD at all (they're cheap), and never noticed a problem with any of them.

  • @edgeeffect
    @edgeeffect 8 หลายเดือนก่อน +1

    I made my own programmer... only problem was, as the programmer is based on an ATMega chip.... so I needed a programmer to program it! :)

  • @jonathancocaud
    @jonathancocaud 8 หลายเดือนก่อน

    If you want it to be even more random, you can add "randomSeed(analogRead(A1));" in the setup()
    ;-)

  • @byronwatkins2565
    @byronwatkins2565 8 หลายเดือนก่อน

    What feedback scheme are you using for the pseudorandom numbers?

  • @cmuller1441
    @cmuller1441 8 หลายเดือนก่อน +2

    It's not really "random" because it can be predicted... It's "pseudo random".

  • @jonathangriffin3486
    @jonathangriffin3486 8 หลายเดือนก่อน

    ive always liked the 328 because i could program asm on it. I perfered external crystal timing for hardware control.

    • @andymouse
      @andymouse 8 หลายเดือนก่อน

      me too still love it !

  • @davidareader
    @davidareader 8 หลายเดือนก่อน

    commonly random bitstream generation is done by sampling avalanche noise in a reversed-biased p-n junction .. i've seen several designs using discrete transistors, but never encountered a "single chip" implementation .. so now i'm wondering if there is a reason why, or if such a thing does in fact exist?

  • @sdp8483
    @sdp8483 8 หลายเดือนก่อน

    I really like the newer Attiny212 for simple projects with minimal flash requirements. Its bigger siblings that includes the attiy416 are also great.

  • @johnpawlicki1184
    @johnpawlicki1184 8 หลายเดือนก่อน +2

    This is not still not random nur psuedo-random. Trjuly random generally requires a noise source. Still good video.

  • @synthnerd4539
    @synthnerd4539 8 หลายเดือนก่อน

    This is good to know, because I just bought an ATTiny 85 and programmer to teach myself how to do exactly this for the same kind of circuits! But as someone who doesn't know C (presuming that's C there) I'd have liked a quick rundown of the code - though a healthy amount of Z80 back in the day means I can hazard a guess. Also, how does that random generator actually source its choice? What's the basis for the randomisation? How random really is it?

    • @IMSAIGuy
      @IMSAIGuy  8 หลายเดือนก่อน

      there are a million videos on how to program. I suggest you use chat-GPT and ask for simple code. then you can look at it and then ask for modifications. chat "write an arduino sketch for the ATTINY85 that blinks an LED connected to pin 2." then "modify code to blink the LED twice each time" then "make the led blink slow and speed up over 4 seconds" .....
      the random function is pseudo random and will repeat after several millions.

    • @synthnerd4539
      @synthnerd4539 8 หลายเดือนก่อน

      @@IMSAIGuy so this is flipping bits at full speed, I take it? And I also guess it would be simple to add a delay, or divide the clock speed down to run this in the same kind of speed ranges that the old shift register blocks worked..?

    • @edgeeffect
      @edgeeffect 8 หลายเดือนก่อน +1

      If you did some Z80 back in the day, I heartily recommend getting into AVR assembly language... it's a rather nice instruction set that will remind you of the good ol' days.

    • @andymouse
      @andymouse 8 หลายเดือนก่อน

      @@synthnerd4539 Exactly.

    • @andymouse
      @andymouse 8 หลายเดือนก่อน

      @@edgeeffect Yep it's awesome !

  • @sbelectronicaindustrial6652
    @sbelectronicaindustrial6652 8 หลายเดือนก่อน

    👍👍👍👍👍👌👌👌👌👌.....