A proper 8 bit DAC is an amazing feature for such a small micro, ordered a few to play with.
@cheaterman493 жыл бұрын
Yeaaaah!
@jeremiefaucher-goulet33653 жыл бұрын
Getting pretty good at the Dave Jones impersonation 👍
@pablorjimenezjr3 жыл бұрын
It was pretty dead on! Totally pictured Dave there.
@JuniorJunison3 жыл бұрын
Now all he's missing is the crocodile dundee knife lol!
@Dredderick3 жыл бұрын
I like your references to Steve1989. I watch his videos from time to time just to hear him say "Let's get this out on a tray...NICE!"
@NatesRandomVideo3 жыл бұрын
That one surprised me. And I liked it! LOL
@MichalKobuszewski3 жыл бұрын
Interesting! After using AVR's for my first few years in microcontrollers, I grew tired of their limitations and got into STM32, never looked back. If it is a must to solder one without a hot air station, I know there are some STM32s in SO8 and TSSOP14/20 packages, but to be absolutely fair - these particular parts don't contain DACs. But once you get into QFN packaged parts, it's like night and day in performance and peripherals plus they can get really small where it matters. I love that Single Wire Debug works on any STM32 with a $5 dongle I can get from mostly anywhere, Microchip used to price their not-so-great programmer way higher.
@xp75753 жыл бұрын
Honestly, I never have a clue what Ben is talking about or doing when it comes to any of the tech stuff he works on but he's still one of my favorite KZbinrs just because of his personality, been subscribed for nearly a year now and I watch most of his vids just for his sense of humor and all the random hysterical things he says while he's working
@chain35193 жыл бұрын
Ben Heck's getting equipment from manufacturers again! This is an absolute win!
@kadlerio3 жыл бұрын
I have to say Atmel Start seems pretty cool. Nice way to lower the learning curve and get people started with all the features. I also imagine it must have been pretty fun to build it. :)
@RanHam2 жыл бұрын
I've been bare metal programming the atmega chips for years now. I recently decided to try the stm32 but thought it was a bit complicated for me, so I bought a AVR128DA48 and this video really helped me figure out my way around the infrastructure. Thanks
@YoutubeBorkedMyOldHandle_why3 жыл бұрын
I really appreciate that Ben is not afraid to get his hands dirty, and doesn't assume that we are all 1st graders, because frankly I'm sick to death of seeing 'hello world' and 'blinky' tutorials with no followup. On this note, the ATTinys are a great fit, because they kind of force you to use the old grey matter in order to get them to do anything useful.
@alejandroperez5368 Жыл бұрын
You sure about that? You can use the Arduino framework with them.
@AJMansfield13 жыл бұрын
43:00 Why is the `if (ringBuffer[txPointer]) { transmitByte(); ` portion required for the `uartSend()` function? The datasheet explicitly states that "DREIF is set after a reset to indicate that the Transmitter is ready" in section 24.5.5, so you don't actually need to have ever written to `USART0.TXDATAL` in order for the DRE interrupt to fire. By my reading, just setting `USART0.CTRLA |= USART_DREIE_bm;` _should_ immediately trigger the interrupt to run at that point if appropriate, which already performs that exact check first thing. The way this peripheral is meant to be used, you're supposed to just set DREIE any time you add a character to the send buffer, and then just immediately have the ISR pick the character back out of the buffer with zero delay if it's ready to send. And while that does end up shuffling that first character into an intermediate buffer one extra time even though you could've written it directly, that is actually *more efficient* than shuffling around all the data you need to even _check_ whether or not you need to. Here's how I'd do it: (EDIT: incorporated fix from @Mark S ) ``` #define BUF_POWER 5 #define BUF_SIZE (1
@ax13h3 жыл бұрын
As written you've got a race condition in putc. WritePointer will actually load increment and store before ch is writen to the buffer. writePointer++ needs to be on the subsequent line.
@AJMansfield13 жыл бұрын
@@ax13h Oh, good catch. Technically, before C++17 the update to `writePointer` and the write to the buffer were actually just unsequenced (which still isn't good), but yeah, since C++17, `writePointer` gets updated first: "17) In a subscript expression E1[E2], every value computation and side-effect of E1 is sequenced before every value computation and side effect of E2" (from en.cppreference.com/w/cpp/language/eval_order#:~:text=In%20a%20subscript%20expression )
@donpalmera3 жыл бұрын
I heard the this new C89 thing has stuff like preprocessor defines and bit shifts so you don't have to put hand crafted hex values all over the place.
@exosdel3 жыл бұрын
I love this microcontroller videos, great job!
@DouglasFish3 жыл бұрын
Between you and Steve Burk, good sleeping material. Information, I learn something, and I rest well at night
@MrDaniellong19703 жыл бұрын
Wow... 9 minutes. A new PB!
@BusyElectrons3 жыл бұрын
Thanks for an excellent intro to this microcontroller family. I'm looking forward to your follow-on video(s).
@ky56663 жыл бұрын
50:09 I much prefer datasheets that over explain the shit out of how it works as I have encountered datasheets that don't and it's a true nightmare to figure out. Like for example the W5100 Datasheet was not entirely clear that you cannot just set the index to how many bytes you wrote to memory. Instead you must first read the index, send the data starting at that index then add how many bytes you wrote to the index and write it back to the chip. You also have to detect if you have overflowed the page and if so wrap the data accordingly and calculate the index to the end of the page then add the rest of the value to the base page address.
@Ray-ej3jb3 жыл бұрын
Hi Could you explain and show the programming interface you used -thanks
@planker2 жыл бұрын
Like you, I'm taking a stab at the ATTINY88. Got most of it to work somewhat, Using the Arduino IDE. I haven't tried Micro chip stuff yet. My show stopper so far is no RX/TX functions. Blink works, servos work, ect. . It also has no PORT id, and resets wildly with some Nano sketches.
@stephanemuller70322 жыл бұрын
What's the name of the tool you used at 14:40 to generate the wave signal as an array? Great video! I love seeing the process of going through the datasheet and figuring out how the MCU works.
@poptartmcjelly70543 жыл бұрын
what about making an attiny synth?
@uwezimmermann54273 жыл бұрын
Your indent style is the only one which should be acceptable! Thank's for pointing me to these new devices - I had no idea that they had launched a new series of ATtinys as well. I'll need to get some myself...
@uwezimmermann54273 жыл бұрын
since when "do we not have to do this progmem thing" in AVR GCC using Atmel Studio?
@0LoneTech3 жыл бұрын
I guess from the praise for UPDI you haven't used debugWire. You could already program using only one wire, though from a quick glance maybe updi is faster. Debugwire wasn't on high end chips, it was on low pin count chips, including the attiny25 you were comparing to.
@heinzkreutziger221810 ай бұрын
Great intro for new ATtiny 1 series. Do you have the code snippets available somewhere?
@MikeStavola3 жыл бұрын
Your Canadian accent is like a mix of Canadian, Irish, and an old Amish man.
@ratinthecat3 жыл бұрын
Is Candian though? Edit: Oh, but the Canadian accent part...
@IndellableHatesHandles3 жыл бұрын
He sounds a bit like me off-camera. I'm from Atlantic Canada.
@john_hind3 жыл бұрын
I think the only Canadian he's met happened to be a Newfie!
@jerther_3 жыл бұрын
So many accents in Canada... That's one I've never heard.
@AQUATICSLIVE3 жыл бұрын
Yep I am from Wisconsin too lots of us pretty mixed together sounding.
@shivambatra82102 жыл бұрын
Hi, I would love to watch an in-depth guide/tutorial by you on these tinyAVR 1-series MCU's using both Atmel Studio and Atmel Start. Thanks for this informative video!
@YoutubeBorkedMyOldHandle_why3 жыл бұрын
It's very expensive watching your videos. Every time I do, I end up buying a whole lot of new stuff. This time I didn't even finish your video before placing another AliExpress order. Thanks Ben ;-)
@BrandonPoulton3 жыл бұрын
Thanks for the introduction to Culvers! I am now addicted to the fries!
Well there's RAM, flash (the code) and EEPROM. Perhaps you're getting them mixed up?
@YoutubeBorkedMyOldHandle_why3 жыл бұрын
@@BenHeckHacks Thanks for the response. I didn't think that I'd make a mistake like this, so I looked again. The ATtiny212/412 datasheet quite clearly states on page 1: Memories - 2/4KB In-system self-programmable Flash Memory - 64/128B EEPROM - 128/256B SRAM .... And for my ATTiny 412s, in the 'Device programmer' window of AtmelStudio7, (read with my Atmel-ICE), the 'Device Information' tab clearly states: Flash size: 4k EEPROM size: 256 bytes SRAM size: 256 bytes I'm inclined to believe the datasheet, though I haven't tried programming the "256 bytes" of EEPROM ... maybe I should.
@piratesephiroth3 жыл бұрын
dave jones cameo at 28:32
@ClericChris3 жыл бұрын
Would love to see you put that smarmy Aussie in his place and do something with the 3 cent Padauk microcontroller. The world needs to see what someone from America's Canada can do.
@yerdyi3 жыл бұрын
nice to see someone else who uses the microntroller part number when creating a project name
@andreaszapfl97763 жыл бұрын
"Please don´t get rid of Atmel Studio" :-D
@NeoTechni3 жыл бұрын
*Atsmell
@uwezimmermann54273 жыл бұрын
the latest downloads call it "Microchip studio" - it seems that they intend to keep it around...
@BobMagana3 жыл бұрын
There better be cooking!
@kalimaa9993 жыл бұрын
Skip @20:21 - @20:27 to avoid hearing rumblings of a lunch eaten, but alas, unfilmed.
@dieSpinnt3 жыл бұрын
8:10 Ben:"We want a division of 0" Ariane 5: "What could possibly happen? ... Go on!" Thanks for presenting these nice little buggers, Mr. Heck:)
@Jonas_Keunecke3 жыл бұрын
Thanks for the video, I'm not sure if I remember this right, but can't you Ctrl+Click on a variable or define to get to the definition ? Maybe not :) It's been a long time but I hope to get back to this kind of stuff soon! I made a little 3 button controller with an ATTiny85 for my monitor which would let you select VGA/DVI/HDMI without going through the menu by simulating button presses. Just as I was about to get the timing perfectly right, I somehow lost the code, but it still works most of the time.
@HeyBirt3 жыл бұрын
That's not a sine of life, it is a square wave of life!
@23Gears3 жыл бұрын
You took the words out of my mouth 😆
@Rezigunn3 жыл бұрын
100% agree that hunchback is the best disney movie. My all time favorite glad to see ben has good taste
@john_hind3 жыл бұрын
At last! A low pin count micro with serial peripherals! Better late than never I suppose? Always puzzled me why they did not do this for making distributed individual sensors or actuators controlled by serial bus. Hook this up to a single microswitch and then wire your machine using I2C, or another serial bus.
@strayling13 жыл бұрын
@4:54 that's a square wave of life, not a sine.
@deskpro2563 жыл бұрын
Sign of life
@kalimaa9993 жыл бұрын
Praise be to Jeebus. Comments keep Ben's algorithm a growin'
@didgeridooblue9 ай бұрын
Add an RC high-pass filter to the DAC's out and it will be cleaner.
@IndellableHatesHandles3 жыл бұрын
Unfortunately, there is no Linux version of Atmel Studio. There is an Eclipse plugin, but Eclipse has shown itself to be unreliable on my machines.
@nkillick3 жыл бұрын
"good artists copy; great artists steal"...Jobs was quoting Pablo Picasso :-)
@ichumak3 ай бұрын
what kind of debugger have you used?
@tengelgeer3 жыл бұрын
35:38 I like the bracket there :)
@khatharrmalkavian33063 жыл бұрын
I wonder what all those squiggly red lines and dropdown list boxes are about? Oh! Another syntax error. How'd that happen?
@victortorres20803 жыл бұрын
Hi Ben, great video, Master of Microchip ATMEL, you can add other videos of this small and powerful microcontroller, also detail the tools (software and hardware) and codes used to start testing, unfortunately I still do not have the integrated one physically. Greetings.
@JasonPullara3 жыл бұрын
hmm I guess I could ask here, but I doubt I'll get a response. Anyone have any idea how I could control a 34v-ish motor from something like a raspberry pi or arduino?
@ijaygee13 жыл бұрын
Sure, you need an H-Bridge to supply the 34V to the motor and some optocouplers to hook it up to the Pi. You can then use a couple of 3V outputs from the Pi to control the motor direction and, if you use PWM outputs, you can control the speed too.
@rdxdt3 жыл бұрын
GIMME DA SCOPE, oh wait, wrong channel...
@rfdave39803 жыл бұрын
And the Oscar goes to ... Ben
@dream0p2131 Жыл бұрын
I probably shouldn't encourage it, but the grandma skit had me rolling.
@rimmersbryggeri3 жыл бұрын
Did anybody try the fish?
@andrsam36823 жыл бұрын
😭😭😭 I cry, when I see delay() in interrupts
@machmar3 жыл бұрын
How did you make it so you have Atmel Studio and not Microchip Studio? My Atmel Studio said "hey! I'm Microchip Studio now".
@BenHeckHacks3 жыл бұрын
By the magic of having installed it years ago!
@machmar3 жыл бұрын
@@BenHeckHacks Oh lol
@republique75253 жыл бұрын
Tiny84 and Tiny85 have debugwire IIRC
@BenHeckHacks3 жыл бұрын
You're right, my bad!
@rivards13 жыл бұрын
This was like listening to Charlie Brown's teacher saying "wah-WAH-wah" except with occasional pop culture references. Still interesting though!
@dh20323 жыл бұрын
same here, didn't make any sense, until 48:30 with the Oled Screen
@xp75753 жыл бұрын
Honestly, I never have a clue what Ben is talking about or doing when it comes to any of the tech stuff he works on but he's still one of my favorite KZbinrs just because of his personality, been subscribed for nearly a year now and I watch most of his vids just for his sense of humor and all the random hysterical things he says while he's working
@nguyenthinh61883 жыл бұрын
I dont know why avr 1 series not available in my country, no one buy,no one sell it. Atmega market only for m8,m328p,m128,m2560,t10,t13,t85, ...
@VVerVVurm3 жыл бұрын
I read it as Techno-Blog-y
@ovalteen44043 жыл бұрын
If you're using the free version of AVR Studio and the GCC compiler, you still have to use PROGMEM 😭
@0LoneTech3 жыл бұрын
Not on all chips. It's because you need different instructions to read program or data space. Some models have program memory accessible by data instructions.
@myfireydragon2873 жыл бұрын
Every once in a while I know what he's taking about. It's at those times I feel smart, but two seconds later I'm right back to feeling dumb again.
@bismuto42_3 жыл бұрын
Thanx i'm a noob on the microcontrollers world and this video is useful
@twobob2 жыл бұрын
was the Canadian guy from Ireland? Nice chip
@metalpachuramon3 жыл бұрын
Nice Dave Jones impersonation, I hope we get to see a Ben's impersonation 😂
@dinkc643 жыл бұрын
nice tip: analogx pcalc (search it, it's free), it lets you put in c expressions for hex/bit manipulation. Other than my gcc, this is the most used tool on my machine. (doesn't contain adware/bulls*, I have no relation to the author whatsoever - but I can imagine he's a great dude!)
@john_hind3 жыл бұрын
Wow! The chips themselves are nice and affordable, but that ATMEL ICE is a bit of a gouge!
@kensi170 Жыл бұрын
have PickKit4
@aaronjamt3 жыл бұрын
17:19 Wait, how do you know my grandma? Did YOU program the chip??? You killed my grandma!!
@BenHeckHacks3 жыл бұрын
Hey my grandma didn't die because of a chip failure! The kids chose to pull the plug! (well my mom didn't but she was out voted)
@aaronjamt3 жыл бұрын
@@BenHeckHacks O.O so... you programmed your kids' brainchips, right? So technically you programmed chips that eventually made the decision...
@ninjamaster34533 жыл бұрын
I got started with atmel
@Vamptonius3 жыл бұрын
2:42 - You happen to be the world's foremost rockstar electronicist.
@ImaginationToForm3 жыл бұрын
We need a spinoff show. Ben's Grandmama
@BenHeckHacks3 жыл бұрын
I guess we could livestream her grave?
@TeraVoltLabs3 жыл бұрын
I love the reference at 3:15 ... those who know :)
@AuDHDQ3 жыл бұрын
Can I install linux on ur computer?
@rullywow38343 жыл бұрын
“Nice hiss!”
@NatesRandomVideo3 жыл бұрын
Underrated comment. :-)
@cheaterman493 жыл бұрын
26:07 We come for the tech, we stay for the silly Disney parodies hahahahaha :-D EDIT: 30:55 We also stay for the funny Canadian impressions hahaha, sounds like some sort of Aussie pirate that lived in rural Canada for a few years hahahahaha!
@scharkalvin3 жыл бұрын
Hey Microchip, if you're going to keep Atmel Studio, please PORT IT TO LINUX!! (Or make it work under WINE). MPLAB IDE may suck at the moment, but at least it runs on Linux. You might not have to use 12v programming to recover the reset/updi function if the pin is used for I/O, provided the fuse isn't the ONLY way to get pin io function. Not sure if the pin mux can override the fuses on that one. I've started fooling with the atmegaAVR128 series processors. They are similar to the new tiny series (Xmega / ARM CortexM derived). BTW Ben, can you put your code from this video up on Github or someplace? I'd like to steal (I mean BORROW) some of it. Thanks!
@Manderion3 жыл бұрын
It is so painful to listen to you, when you have a lump in your throat :-(
@demonsty3 жыл бұрын
whats a microcontroller?
@xp75753 жыл бұрын
Trump's baby hands
@SpektralJo3 жыл бұрын
A small computer on a single chip that is designed to be embedded into a system or product
@justingilmore64173 жыл бұрын
HAHAHA Sams choice I2C love it!
@siberx43 жыл бұрын
4:55 "Looks like we have a sine of life" Looks more like a square (wave) of life to me ;)
@AQUATICSLIVE3 жыл бұрын
This was a fun one always tossing in random stuff fun listen.
@xp75753 жыл бұрын
Honestly, I never have a clue what Ben is talking about or doing when it comes to any of the tech stuff he works on but he's still one of my favorite KZbinrs just because of his personality, been subscribed for nearly a year now and I watch most of his vids just for his sense of humor and all the random hysterical things he says while he's working
@mfryer1003 жыл бұрын
Steve1989 reference. Nice.
@MatthewHarrold3 жыл бұрын
Liked and sub'd, been watching a heck of a time.
@marcbotnope17283 жыл бұрын
AAAAAA { on the same line as the while... O M G !!! Ben Hack indeed
@ferencszabo35043 жыл бұрын
I hope that the ISA is intact, bastard Microchip...
@jody56613 жыл бұрын
I'm kind of curious, how much banging your head against the wall trying to figure out weird things do you do? Maybe It wasn't an issue in this project, but what about all of your projects generally speaking? The way you portray your work in video it seems you rarely run into an issue that isn't something you can fix in short order. How often do you spend 15 minutes, 30 minutes, 4 hours trying to figure out why something doesn't work? Maybe that'd be a cool idea for a video.
@jody56613 жыл бұрын
Just to kind of clarify a bit, I'm not talking about coming up with a method on how to complete a project, I'm talking about when you do something that you think should work without an issue but it's not producing the outcome you want. Just a dumb example say you hooked up an 8 pin IC with power on pins four and eight as is common (I could be getting those numbers wrong but I believe I'm not) but it turns out that you're supposed to apply power on say pins one and eight. Again it's a dumb example as I would imagine you would realize that almost instantly but that concept of doing something the way you believe is correct but turns out isn't and you have to go back and figure out why it's not.
@BenHeckHacks3 жыл бұрын
Well with this project took me about 45 minutes to realize I was pulling Write Protect wrong. The magic of video editing works wonders! Usually most problems are "dumb problems" like that and I feel like "well there's an hour of my life I won't get back"
@bsmithril3 жыл бұрын
"I already did a couple tests off camera to make myself look smarter" 😂🤣. And everyone else but they won't admit it.
@BenHeckHacks3 жыл бұрын
The first step to being intelligent to is know how dumb you are.
@SodAlmighty3 жыл бұрын
I wasn't aware microcontrollers had so many "pereferals"...
@game-f-un-limitedgamer89583 жыл бұрын
That awkward moment when you do a bunch of calculation live on camera and the answer is 69.
@Jimfowler823 жыл бұрын
Mix between Indian and Irish (Canadian)
@RP4UXO7 ай бұрын
A.W.F.U.L.
@McTroyd3 жыл бұрын
Hmm... 128 bytes RAM and 2K flash... a couple of shift registers, and you've got most of an Atari 2600 console right there... 🤔😁
@HorochovPL3 жыл бұрын
4:48 Nooo! You said You'll use decimal here!
@Shawario3 жыл бұрын
hi
@harrypehkonen3 жыл бұрын
"Please, Microchip! For the love of god, do not get rid of Atmel Studio! It is so much better than MPLab X..." Like!!! Subscribe!!!
@victorvodka2 жыл бұрын
eeeeeeeeeeeeeeeeeeeeeeeeee... I'm with the angels now! lol
@ignatiocabron3 жыл бұрын
6
@JernD3 жыл бұрын
Me gusta gutsa
@besotoxicomusic3 жыл бұрын
I’m a master butcher and an amateur comp geek. Still not offended by your appropriate comment.
@armctec35313 жыл бұрын
Doesn't run Crysis, maybe run Doom?
@besotoxicomusic3 жыл бұрын
WoordiZle
@dionelmejia80933 жыл бұрын
Well I'm not into stuff like this so idk why this was in my KZbin recommendations lol