carehost.blogg.se

Sainsmart oscilloscope dds120
Sainsmart oscilloscope dds120












sainsmart oscilloscope dds120
  1. Sainsmart oscilloscope dds120 serial#
  2. Sainsmart oscilloscope dds120 upgrade#
  3. Sainsmart oscilloscope dds120 full#
  4. Sainsmart oscilloscope dds120 trial#

Hopefully this post will help at least one person on this planet.įeel free to comment on any improvements, though, or whatever. Produce S-scans images (this sounds quite tricky ).So I am quite impressed by the results thus far and also by myself, given my background. The first blob is the initial burst, the second one is my hand at roughly 2 feet away from the sensors, the third one is the ceiling at roughly 5 feet above the sensors. So far I am able to produce the A-scans with MATLAB, this is an actual screenshot: If(currentMillis - previousMillis >= pulseInterval) Serial.begin(691200) // Max Arduino terminal is : 115200 ( 6x slower! ) Fast ADC : set ADC prescale to 16 (default 128) #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))Ĭonst int pulseWidth = 3 // micros * (prescale factor 128 / 16 = 8) #define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) Defines for setting and clearing register bits Connected via USB to computer running MATLAB script to retrieve data. RX piezo connected to analog pin 10 trough an op-amp configured as a differential amplifier (G : ~30x). TX piezo connected to digital pin 22 trough a power transistor to be driven by higher voltage (12 V).

Sainsmart oscilloscope dds120 serial#

Send the A-scan data over serial to be retrieved by MATLAB. Sample the transducer at around 50 KHz (analogRead) to produce an A-Scan. Produce a sonar burst at 40 KHz (digitalWrite).

Sainsmart oscilloscope dds120 trial#

By trial and error, I have managed to push the baudrate up to 691200, or 6 times higher, with reliable receive on the MATLAB side. The terminal of the arduino IDE seems to suggest a maximum baudrate of 115200. The second tricky part is to send the data as an array of bytes fast enough. This allows the Arduino to sample at roughly 60KHz instead of the usual 9KHz.

Sainsmart oscilloscope dds120 upgrade#

The first tricky part here is to upgrade the sample rate of the arduino by reducing the ADC prescaler. In a couple of days (yes days, I’m a beginner in electronics), I have managed to OP-Amp TL072 arranged as a differential amplifier (to amplify RX piezo signal) NPN transistor BD137 (to drive the TX piezo at higher voltage)

sainsmart oscilloscope dds120

Arduino Mega (what I have on hands, I think lower ones like the UNO should do the job too) 2 Piezoelectric transducers (from aliexpress, I think they are the same as on the PING ultrasonic distance sensor, they are tuned at 40kHz).Those A-scans will be transmitted to MATLAB in realtime in order to collect the data and generate the s-scan image. The servo will sweep the sector as the piezos will sense the surrounding in a series of consecutive A-scans. This is how I will try to accomplish my final goal:īoth a transmitting and a receiving piezo transducers will be mounted onto a servo motor. I basically want to make a sonar capable of producing sector scans (s-scans) like so: The idea is that I want to produce an image of the surroundings using ultrasound. Smart GPU 2 processor can bring graphics, audio, touch, etc to any application or project without the need of having experience in handling LCDs and graphics algorithms.Ĭurrent hardware on the video is: smartGPU 2-LCD480x272 4.3" + smartSHIELD + Arduino UNO R3.Hi, I would like to show off the project I’m currently working on. All processor functions are received using simple commands via the serial interface. The Smart GPU 2 offers a simple yet effective serial interface UART to any host microcontroller that can communicate via a serial port(Arduino, Raspberry PI, mbed, beaglebone PSOC4, PIC, Atmel, Freescale, STM, FPGA, PCs(RS232),8051) and low end 8 bit microcontrollers. It's aimed to help developers to create advanced Graphical User Interfaces (GUIs) in a very easy way in just minutes, not days. SmartGPU 2 doesn't need any configuration or programming on itself, it's a slave device that only receives orders.

Sainsmart oscilloscope dds120 full#

The SmartGPU 2 is a powerful easy to use, intellectual property, graphics, audio, touchscreen and full datalogger processor embedded in a state-of-the-art ARM Cortex-M3 chip its mounted on a board with a touchscreen color LCD.














Sainsmart oscilloscope dds120