Spartan 7 Seeed Studio USB-UART example
14:10
5 місяців тому
Arduino Mega Assembler Uart + Blink example
13:10
Digilent Nexys 2 Uart + Blink example in VHDL
14:06
STM32MP135f DK IWDG + GPIO baremetal C example
8:23
КОМЕНТАРІ
@violinsheetmusicblog
@violinsheetmusicblog 6 днів тому
I don't have dev_handles.c after building, only configs.c and isr_tables.c
@e-exp
@e-exp 4 дні тому
You are right because the version of sdk 2.2.0 (the one used in the example) is not available thanks to nordic, and the new versions differ alot and don't have dev_handles.c in build. I'm not sure when i will be able to add a fix to it, but when i will have a bit of time i'll add it.
@scoopof3d
@scoopof3d 24 дні тому
Nice, cant wait for the audio implementation. Are you Polish? You sound slavic.
@e-exp
@e-exp 24 дні тому
Yes, i'm from Poland. UKposts is the only place i speek English nowadays so those are the results :D
@scoopof3d
@scoopof3d 14 днів тому
@@e-exp hej jaki jest twoj email? Mam projekt gdzie potrzebuje programiste
@e-exp
@e-exp 14 днів тому
Cześć, pisz na [email protected]
@shivprakashyadav6906
@shivprakashyadav6906 Місяць тому
Can I get the code for my reference
@e-exp
@e-exp 29 днів тому
Hi, the link to the repo with the project is in the description, the link directly to the project is: github.com/E-exp/Arduino-Due-ATSAM3X8E/blob/main/W5100_SAM3X_Telnet.rar
@shivprakashyadav6906
@shivprakashyadav6906 29 днів тому
@@e-expthanks
@shivprakashyadav6906
@shivprakashyadav6906 Місяць тому
Hi very good one
@danielmikkelsen2476
@danielmikkelsen2476 Місяць тому
Hi, how would you make this sample work on the nrf9160dk? Best regards
@e-exp
@e-exp Місяць тому
The nRF9160dk looks like a nice board, i will have to order it first so in the next week (i guess) i can start programing it
@scoopof3d
@scoopof3d Місяць тому
Just getting started with nRF MCUs and these videos are helping with transition. Are you able to make one with bluetooth audio?
@e-exp
@e-exp Місяць тому
Sure, i will be making a video on how to setup a custom bluetooth service - to send audio /video / files.
@scoopof3d
@scoopof3d Місяць тому
That would be sick! @@e-exp
@GTKCareerPro
@GTKCareerPro Місяць тому
how to connect nrf5340 board with any other ide?
@e-exp
@e-exp Місяць тому
Segger Embedded Studio supports the nRF5340 MCU but You have to create the project nearly from ground up. wiki.segger.com/Nordic_Semiconductor_nRF5340 Another way is to create a baremetal project and link the libraries to it so it can be used in most of the ides. At some point in time i will be switching to segger or atmel studio (visual studio) with the nRF53DK because the vscode with zephyr is kind of slow and takes a lot of resources to build.
@28-arjunmp37
@28-arjunmp37 Місяць тому
can i use this in 2024?
@e-exp
@e-exp Місяць тому
The spartan 3 is working with xilinx ise 14 - that is running in a virtual linux machine so You can use it on any computer anytime to create projects for the Nexys 2
@martinaallegrascollo7081
@martinaallegrascollo7081 2 місяці тому
Hello, I am a student and I really need a help for a project I was assigned to. Is it possible to contact you with an email?
@e-exp
@e-exp 2 місяці тому
Hi, sure write to [email protected]
@user-qo1vi7gn8s
@user-qo1vi7gn8s 2 місяці тому
Very helpful, thank you, sir.
@critonify
@critonify 2 місяці тому
Hi why do we have 2 packet_writes? and read?
@e-exp
@e-exp 2 місяці тому
Hi, the two first writes were to setup the accelerometer at two registers - it can be done using only one packet and just changing the data in it before another write. After we do a write to a register we also should do a restart of the transmission before writing to another one - something like repeated start. And the read packet is pointing at the register containing X accelerometer axis value (the upper 8 bit and address +1 is the lower 8 bit part). So a packet write does: write device address shifted left 1 bit -> write device register address -> write register content ->end transmission. A read packet does: write device address shifted left 1 bit plus 1 -> write device register address -> read register content -> read address plus 1 or end transmission.
@critonify
@critonify 2 місяці тому
Thank you :)@@e-exp
@critonify
@critonify 2 місяці тому
Hi I had sent you an email with the problem I am facing with i2c when reading the temperature could you please see it?
@senlyrics7160
@senlyrics7160 2 місяці тому
Hi can we implement it with Arduino Mega 2560?
@e-exp
@e-exp 2 місяці тому
Hi, the Atmega does not have a usb phy, but it is possible to use 12MHz USB 1.0 emulation through pins, then it would be still a little bit of work to port the mass storage code - so quite hard but possible.
@ARJ0711
@ARJ0711 2 місяці тому
Helpful ❤❤❤ great video 👌
@danielgiesbrecht9701
@danielgiesbrecht9701 2 місяці тому
Good walkthrough! I'd recommend doing a screen-cap with OBS instead of pointing your webcam at the monitor. The camera sometimes loses focus, and shakes.
@artbess
@artbess 3 місяці тому
Hey! I want to send you some huge THANK YOU!! for your dedicated SAM3x8E Playlist. I am currently learning how to get into 32-Bit Microcontrollers and starting with the SAM3x8E, because it is a quiet powerful device compared to the STM32 controllers. Do you intend to make a video how to set up the Tool-Chain for bare-metal programming of the SAM3x8E? It would be nice if you could show how to use the JTAG with Atmel ICE and how to configure an external crystal-oscillator with MicroChip Studio. Again, huge thanks!!
@e-exp
@e-exp 3 місяці тому
Hi, nice to hear it was helpful, sure thing for a baremetal setup, jtag debuging (only have j-link ultra+ at the moment), some overclocking (like 200MHz+) and general clocks setups. The STM32 (mcu and mpu) have problems with hardware and software quality - they work generally ok but there are cases of bugs in hardware and software that can slowdown work with the project for days.
@artbess
@artbess 3 місяці тому
@@e-exp Wow, I didn't expect that the STM32 has hardware-bugs. But I guess the learning-curve might be less steeper than using the SAM3x8E for own projects. My current goal is to build a custom PCB based on the SAM3X8E to control some Motors via PWM, getting feedback from quadrature Encoders and receiving Input from the onboard ADC via Potentiometers. To get precise control over the Timers I would like to know how to configure the clock-frequency fuses (like the Atmega328 via MicrochipStudio) (if it is even necessary) and how to program this µC using simple Pins (JTAG e.g.) instead of the USB framework. But nevertheless, you are a live-saver. The documentation on the SAM3x8E over the internet is very poorly and your Playlist is therefore gold!
@SuperXeroNine
@SuperXeroNine 3 місяці тому
Thank you!
@user-jj5mx8pv9g
@user-jj5mx8pv9g 3 місяці тому
I can't find the file "dev_handles.c", so I have no idea about devices declared. Could you help me?
@e-exp
@e-exp 3 місяці тому
Hi, the dev_handles.c is a file generated by the zephyr build process. So to get the file You have to run a clean build of the application. After the build the dev_handels.c can be found in Source files -> Generated -> zephyr. If You have problems with zephyr you can use the nrf drivers directly just like in my video with a spi lcd screen - there gpios are used only with the nrf driver.
@jemos329
@jemos329 3 місяці тому
I was running into the same issue. Thank you very much for making this video explaining how to fix the problem!
@ingeborgeickmeyer5179
@ingeborgeickmeyer5179 5 місяців тому
"Promo SM" 😜
@karthic4404
@karthic4404 5 місяців тому
Can you make a video tutorial for vs code used nRF52 microcontroller with all the peripherals like gpio, adc, pwm, uart, i2c, spi
@e-exp
@e-exp 5 місяців тому
I got a few nRF52 DK boards (the nRF52832 variant) so sure thing
@karthic4404
@karthic4404 5 місяців тому
@@e-exp Thank and please make the tutorial using vs code
@karthic4404
@karthic4404 5 місяців тому
@@e-exp no problem with nRF52 series, you can use any kind of nRF series 53 also because of all series are same way only
@vahidk474
@vahidk474 5 місяців тому
great😍thanks to share it.I wish you make more videos about nrf5340
@e-exp
@e-exp 5 місяців тому
I'm planning to create a segger embedded or baremetal project for the board so it will be faster to build and more user friendly than the VS Code setup with Zephyr. For sure i will be doing a bluetooth camera project with it.
@karthic4404
@karthic4404 5 місяців тому
But latest all the SDK are support and nrf community also providing support only in vs code So can you make all the videos using vs code Please
@e-exp
@e-exp 5 місяців тому
Sure, i will be making videos with the nRF53 probably in the next week
@karthic4404
@karthic4404 5 місяців тому
@@e-exp hopefully I am waiting for your video because now I am starting to learn nrf series programming, i wanted to work with ble mesh technology, so first i need to know the basics things to control all the peripherals. Thanks 👍
@Onkar-g
@Onkar-g 5 місяців тому
Thank You very much.
@mohammadalsmadi8260
@mohammadalsmadi8260 6 місяців тому
for my graduation project I'm using Arduino DUE and an OV7670 I'm trying to connect it and display the output on my computer is that possible and if so can you help me with recommendations or anything? FYI I'm an EEE student
@e-exp
@e-exp 6 місяців тому
Hi, you can use my project with the modification of sending the image to the pc using usb cdc (instead of the lcd display), and on the pc side use python to receive the data, store it in a bmp image and display it using for example tkinter gui - this is probably the fastest way
@lakshitsharma413
@lakshitsharma413 6 місяців тому
for a blink of LED i have to code this much 😅
@user-xk4lg4ym9b
@user-xk4lg4ym9b 5 місяців тому
Real
@e-exp
@e-exp 4 місяці тому
You can also use the legacy driver, for example to configure a gpio as output use nrf_gpio_cfg_output(pin); and for toggle use nrf_gpio_pin_toggle(pin); - where pin (uint32_t) is 0 to 31 pins P0.00 to P0.31 and from 32 to 47 pins P1.00 to P1.15. For reference see the file nrf_gpio.h located in <SDK folder>\v2.X.0\modules\hal ordic rfx\hal rf_gpio.h
@user-xk4lg4ym9b
@user-xk4lg4ym9b 6 місяців тому
Hello Sir, is it possible to use it as a DAC?
@e-exp
@e-exp 6 місяців тому
Hi, the nRF5340 does not have a built-in DAC so there is no way to get a true analog signal output.
@user-xk4lg4ym9b
@user-xk4lg4ym9b 6 місяців тому
Thanks sir, I kinda simulated one, I just needed to test some digital inputs for a PCB @@e-exp
@unglaubichuberlieber8048
@unglaubichuberlieber8048 7 місяців тому
arduino due is a great board...so long YOU KNOW IT IS A 3V BOARD... and many sensors( dht22, us-015 or motor driver boards ) run on 5v...
@user-eu9vb8dw2p
@user-eu9vb8dw2p 8 місяців тому
Will you please tell me how to upload the code in arduino due using bossac?
@e-exp
@e-exp 8 місяців тому
Hi, so you want to use the arduino bossac.exe? If so then if you are using windows, run the command prompt then type in cd <location of your bossac.exe> (in my case cd C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3) And to program a binary file type in bossac.exe -i -d --port=COM6 --force_usb_port=true -e -w -v -R program.bin The Com6 is just for example you need to first check the correct port number. Program.bin is the file you want to program and it is also located where the bossac.exe is.
@user-eu9vb8dw2p
@user-eu9vb8dw2p 8 місяців тому
Thanks it worked
@user-eu9vb8dw2p
@user-eu9vb8dw2p 8 місяців тому
I am trying to use twi in SAM3X8E , I am using BH1745NUC RGB sensor so everything I am doing as per your video but no clock is generating on scl line ,it's always high ,I tried almost every possible ways but l am not seeing any clock on scl line . Suggest me what I need to do to make that RGB sensor work by using SAM3X8E?
@e-exp
@e-exp 8 місяців тому
Things to check are: - is the clock for the i2c enabled with pmc, - is the clock for the pins used for i2c enabled with pmc, - are the i2c pins configured as correct alternate functions, - are the pullup resistors (4.7kOhm) on the i2c lines or configured with pio as internal, - is the i2c instance correct, In my ov7670 cam video there is also i2c (instance 1, pullup resistors are external) used, the sample code used there: pmc_enable_periph_clk(ID_PIOA); pmc_enable_periph_clk(ID_PIOB); gpio_configure_pin(TWI1_DATA_GPIO, TWI1_DATA_FLAGS); gpio_configure_pin(TWI1_CLK_GPIO, TWI1_CLK_FLAGS); pmc_enable_periph_clk(ID_TWI0); pmc_enable_periph_clk(ID_TWI1); twi_reset(TWI1); twi_master_options_t opt = { .speed = 50000, .chip = 0x21 }; twi_master_setup(TWI1,&opt); twi_master_enable(TWI1);
@user-eu9vb8dw2p
@user-eu9vb8dw2p 8 місяців тому
I tried but I am not seeing any clock on scl line
@cedrica3007
@cedrica3007 9 місяців тому
Ooof it Came! Niceee !
@FelixSamulevich
@FelixSamulevich 9 місяців тому
I see nothing . TOO fogy
@e-exp
@e-exp 9 місяців тому
The video equipment i got is quite bad and the computer does not handle video editing well, but don't worry in the next months i will be gearing up and re do most of the videos for better quality and content
@cedrica3007
@cedrica3007 9 місяців тому
​@@e-exp I would recommend OBS, easy to set up and when well optimized it won't load your pc that much. Still great work!
@cedrica3007
@cedrica3007 9 місяців тому
I'm interested in FreeRTOS, is it possible for you to make a simple example with the Arduino DUE and Atmel Studio 7? Maybe using FreeRTOS to blink some leds, and explain the basics of FreeRTOS, etc. I believe it would be a great addition to your channel!
@e-exp
@e-exp 9 місяців тому
Hi, probably somewhere at the weekend i could do a video about rtos
@e-exp
@e-exp 9 місяців тому
I have to delay the video about rtos and another one (about ov7670 cam) for another weekend, no time to record nowadays
@cedrica3007
@cedrica3007 9 місяців тому
@@e-exp I'll be waiting! Hope all is well!
@user-cq4xq9kq5k
@user-cq4xq9kq5k 10 місяців тому
i need a program that send data from arduino due to raspberry pi 3, please can you please make it with atmel studio i need it , i don't now how to do it with atmel studio 7,
@e-exp
@e-exp 10 місяців тому
To send data to rpi you can use usb cdc on the arduino due side and a serial terminal app on the rpi side. The next option is to use uart just like in the uart example video i made a while ago where i was using it to read and send messages to a rpi zero with the due
@critonify
@critonify 11 місяців тому
what is the significance of 84000/32-1. Could you please explain that part like how did it end up in 84000.
@e-exp
@e-exp 11 місяців тому
So the main clock frequency is 84MHz (as set in clock_config.h file), if the timer would run without any prescalers it would decrement the timer counter value every 1/84000000 s. So if the timer ticks 84 times it will take 1/84000000 * 84 s = 1/1000000s = 1us, now if we want to get the timer counting 1ms it has to be 1000 times more so 1/84000000 * 84000 = 1/1000s = 1ms. And with the prescaler of 32 (set by Clock setting 3) it has a frequency of 84/32MHz. And if it comes to minus 1, the timer ends counting at value 0 so for example if we want the timer to tick 10 times it has to start at value 9.
@user-cq4xq9kq5k
@user-cq4xq9kq5k 11 місяців тому
can you please make a video about how to run a servo motor with arduino due in atmel studio
@e-exp
@e-exp 11 місяців тому
As soon as I get some servos I will make a video on this topic
@critonify
@critonify Рік тому
Hi, I am new to programming in asf framework.Could you please tell me how to use the serial montior to print adc values without using cdc_read function?My intentisonis to print ADC values on serial terminal. Many thanks
@e-exp
@e-exp Рік тому
Hi, the cdc_read function is only to get data from the pc. So it can be erased from the program. To print a ADC measurement data you need to convert the uint16 adc data to a readable text in ascii and to do this you can use sprintf function. There also is a buffer needed to store the text like char buffer[7]. And you call sprintf(buffer,"%d ",adc_value); So for example adc_value is 1019; the buffer will contain { '1' , '0' , '1' , '9' , ' ' , '\0', 0} and now by using a charter print function udi_cdc_putc you can printout the data to the terminal like for(int i=0;i<strlen(buffer);i++){ udi_cdc_putc(buffer[i];} I made a video about using cdc with uart in non blocking mode using interrupts it may be helpful
@critonify
@critonify Рік тому
@@e-exp Thank you for the prompt reply i will see this and revert. Thank you once again
@critonify
@critonify Рік тому
what is the significance of the if condition in the main? Could you please explain? Also are you enabling the led pin on due?
@critonify
@critonify Рік тому
I also dont understand what is udc in the code
@e-exp
@e-exp Рік тому
@@critonify the if statement only chcecks if the pc terminal sent '1' char or 49 in decimal and if it did so then the delay time between toggling the led is changed (the tms variable). The led pin is configured before while loop: - first enable gpio group B clock with pmc_enable_periph_clk(ID_PIOB); - next set the pin as output low with pio_set_output(PIOB, PIO_PB27, LOW, DISABLE, ENABLE); To toggle the led you can still use the pio_set_output or pio_toggle_pin(32+27); The argument to this function is 32 +27 because GPIOA is 0 to 31 and GPIOB is 32 to 63
@entspannendemusik7259
@entspannendemusik7259 Рік тому
Hello sir, please can you make a video about how to send for exemple hello world from arduino due to raspberry pi 3 using data port in raspberry pi3
@e-exp
@e-exp Рік тому
If you have a rpi3 with a os like raspbian or so, connecting a usb to native Arduino Due port to the usb of rpi3 will result in detection of the Arduino Due as a usb cdc device. And to read/send data you can use for example arduino ide terminal. And make sure you got installed libusb-1.0-0-dev on the rpi3, if not then in terminal type in sudo apt install libusb-1.0-0-dev
@user-cq4xq9kq5k
@user-cq4xq9kq5k 10 місяців тому
​@@e-exp can you please make it with atmel studio i need it , i don't now how to do it with atmel studio 7, i need a program that send data from arduino due to raspberry pi 3, please
@entspannendemusik7259
@entspannendemusik7259 Рік тому
Thank you
@nfukuehotmail
@nfukuehotmail Рік тому
Hello, the procedure is the same with mplab? The sd card is formatted with fat32?
@e-exp
@e-exp Рік тому
Hi, the sd card is a fat32 / exfat. The bootstap loads any binary file named softpack.bin to the start address of ram, so if you have a program made in mplab and the start address is 0x20000000 it will work
@entspannendemusik7259
@entspannendemusik7259 Рік тому
Hi, How to connect raspberry pi to Arduino due atmel studio ?
@e-exp
@e-exp Рік тому
You want to make a serial communication between Arduino Due and Raspberry Pico? If so then the fastest way is to use UART. In Microchip Studio you can click File -> New -> Example project, in the window select device SAM3X and from the list select USART Serial Example - Arduino Due/x. And from the project you can copy the needed functions to communicate with UART
@entspannendemusik7259
@entspannendemusik7259 Рік тому
@@e-exp Can you apply this and explain the way in video
@e-exp
@e-exp Рік тому
Yeah i could do a video about UART, probably wednesday i will be recording it
@entspannendemusik7259
@entspannendemusik7259 Рік тому
Okay, thank you 😊
@entspannendemusik7259
@entspannendemusik7259 Рік тому
Thank you 😊
@entspannendemusik7259
@entspannendemusik7259 Рік тому
hi can you please make for us a video about an lcd 16O2A WITH arduino due ?
@e-exp
@e-exp Рік тому
Hi, sure. I will be recording and publishing the video next week probably friday
@entspannendemusik7259
@entspannendemusik7259 Рік тому
@@e-exp Hi sure, Where's the video !
@e-exp
@e-exp Рік тому
it may be hiding in this link ukposts.info/have/v-deo/kGaIaqdkj5iczYk.html
@user-cq4xq9kq5k
@user-cq4xq9kq5k Рік тому
thank you
@user-cq4xq9kq5k
@user-cq4xq9kq5k Рік тому
Can you please make a video for an interruption (button and led ) with arduino due in atmel studio
@e-exp
@e-exp Рік тому
Hi, the new video is about using interrupts with leds, link: ukposts.info/have/v-deo/gnNpZpuAhW-Xups.html :)
@rachidbasselam1677
@rachidbasselam1677 Рік тому
this video helped me very much , thank you
@acb499
@acb499 Рік тому
May you share your project or, at least, your c file?
@e-exp
@e-exp Рік тому
Hi, the project is in github.com/E-exp/XIAO-SAMD21 it is the one with description base project with usb
@acb499
@acb499 Рік тому
@E-exp Thanks a lot. I am looking for a long time for a course or a tutorial to implement a virtual com in a projetc using one SAMD21, but all material that I found is so extense and no explain in a code details that implement a simple communication port using the native USB of this microcontroller.
@megannnn98
@megannnn98 Рік тому
Hi, could you please share the project with fatfs ?
@e-exp
@e-exp Рік тому
Hi, the link to the project github.com/E-exp/SAMD51 it is also in the description :)
@megannnn98
@megannnn98 Рік тому
Hi, thank you very much for the video.
@stjinks
@stjinks Рік тому
Can you share how you added FatFs to this project? I am having trouble implementing this on a project with ATSAME53N19A (Clearcore Motion Controller) - I am getting an "undefined reference" for all of the functions in ff.c and diskio.c Any help or steps required for adding an external library would be greatly appreciated!
@stjinks
@stjinks Рік тому
Noticed you have a github repo - downloaded, and will try to reimplement it how you did :)
@e-exp
@e-exp Рік тому
Hi, SAME53 is a bit special microcontroller like the SAMD51 and the Microchip/Atmel Studio with ASF 3.5x does not support adding the features to it. To generate a project for them You have to use atmel start web page, there is ASF 4 and it supports them. However if You want to add the FatFs manualy, the fastest way is to add all files to a folder in the project that already exists and has some search path / include files in it, after that add includes to .h files that use the FatFs. For the example in the video the includes are #include <diskio.h> #include <ff.h> #include <ffconf.h> (in this file is conf_fatfs.h included) #include <integer.h> they are added in asf.h and the asf.h is included in main.c and many more. If You still have trouble, soon i will be adding a video about using the NOR Flash with Arduino Mega with FatFs and it will be a manual port of the libraries used in this video.
@stjinks
@stjinks Рік тому
​@@e-exp Ya - I added everything manually, but still having an issue. I think the header for diskio.h is getting declared twice - i just can't see why
@stjinks
@stjinks Рік тому
​@@e-exp Is it possible I'm having issues because I'm running c++? I thought FatFs was a c++ library? I get undefined reference to ... diskio.c and ff.c functions. All I have in my program is: #include <ff.h> #include <diskio.h> #include <ffconf.h> #include <integer.h> int main(void) { FATFS fs; // Create an instance of the FATFS object FIL file; // Create an instance of the FIL (file) object FRESULT res; // Create a variable to store any return values from functions char path[] = "example.txt"; // File path // Mount the SD card res = f_mount(&fs, "", 1); if (res != FR_OK) { // Handle error } }
@e-exp
@e-exp Рік тому
You are getting still undefined reference? If so then a include may be still missing or some functions don't work if _USE_STRFUNC is 0, a redefinifion error occurs if a .c fille is included like 2 times somewhere
@noufel3
@noufel3 Рік тому
thanks for your videos, they are very important to me, but you should use screen recording software for more quality.
@connorjennings4804
@connorjennings4804 Рік тому
Great Video! Very clear explanation.
@alexanderjankowski3037
@alexanderjankowski3037 Рік тому
Super content! are you eager to make full tutorial on this topic? Programming arduino due in atmel is kindda niche. I think it's worth to make full playlist showing the example projects that might be made with this tool.
@e-exp
@e-exp Рік тому
Hi, there will be more videos on Arduino Due (SAM3X) on the channel. Currently i'm preparing a example with lcd tft with a touch controller.