VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » Knowledge, science, education » GreatScott!
Electronic Basics #36: SPI and how to use it

Electronic Basics #36: SPI and how to use it

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Electronic Basics #36: SPI and how to use it XanCraft21: Is there a way where i can convert the 8 bit SPI output to a 4 bit output? Im working on making my own custom library to drive a ssd1327 128x128 oled display, and i came into a problem. I discovered that the display uses a 4 bit input for every pixel, which also sets the grayscale of each pixel. When i send a data to it, 2 pixels are being lit, but im using only 4 bits. Half of the data seems like its all 0s, which makes the display think im writing to 2 pixels at a time, one is the specified color and the other is blank. It looks like its skipping lines, which only limits my display size to 64x64. Does anyone know how i can make the SPI data only output 4 bits each time?
Date: 2020-09-05

Comments and reviews: 9


I have a request PLZ make a video that demonstrates communication from an ARDUINO R. F. I. D. card reader when I need to read the tag of an R. F. I. D. card ONLY! hence the commercial type you find in the market allows you to read and write which I do not need the write function ever.
reply

sorry for the late comment, in 3: 20 you mentioned that you need for each device a pin. well shouldn't a shift register do the job? of corse you'll have then to program an interface for that, but then instead of using n pin for n device you'll use only 3 pins for n device!
reply

You have made the things I did not understand much clearer and I now do understand more than I ever have before. You are GREAT! Thank you so much. I am looking forward to seeing more of your hard work. Also, I will be ordering some PCB's from your link.
reply

Hello Sir, this video is great and so is that I2C communication! I was wondering if you could make a video on UDP communication which according to my research is one of the fastest wireless communication protocols. It would be very helpful.
Thanks.

reply

hey you should lookup bitfields. like when you declare members of structs as being a few bits long! i bet the version of C arduino uses does that, and it'd probably save lots of messy yukky binary arithmatic if you could just pack a structure: D
reply

at 6: 15 I think that youve incorrectly identified CPOL = 0 and CPHA = 0 as Mode 0. This should be Mode 1.
This is verified at 4: 28 where the ds states that only Modes 1 & 3 are supported.

reply

Guys. am looking for a trusted website where they solder electronics circuits for regular customers cause I got an Intel chip(BGA) and am having a hard time assembling.
reply

Happy new year everyone (I'm posting this new years eve 2019. Are there any maker geeks out there planning to do a projects we lost in 2018 in memoriam video?
reply

Thank u Great Scott for another great instructional. Great idea to test the SPI module first by making it output a square wave. Thanks!
reply
Add a review, comment






Other channel videos