Jump to content
Electronics-Lab.com Community

All Activity

This stream auto-updates

  1. Today
  2. Yesterday
  3. You can use the serial commucations control in VB (Visual Basic) to commucate with an Arduino board. This allows one to make a more formal interface to the board. The serial comm control is found in project/component/Microsoft Comm Control 6.0 in the VB visual studio. Selecting it adds it to the tool box. It can then be dragged on to the form. Its symbol looks like a telephone. In this example an Arduino board is controlling an electric motor via an H bridge circuit. The inputs to the bridge circuit are from pins 4, 5, 6, and 7 from the Arduino board. In the VB code below, the serial interface is setup on loading the form. And four buttons are added: forward, reverse, stop, and exit. On selecting a button it sends a signal to the board which in turn outputs signals to pairs of pins to the transistors in the H bridge. A more practical interface would have code to ask the user which comm port to connect with. ' VB 6 -motor control via Arduino UNO/Mega 2560 Private Sub Form_Load() MSComm1.RThreshold = 3 MSComm1.Settings = "9600,n,8,1" MSComm1.CommPort = 6 'use the one IDE uses MSComm1.PortOpen = True MSComm1.DTREnable = False Text1.Text = "" End Sub Private Sub FORWARD_Click() Text1.Text = "FORARD DIRECTION WAS SELECTED" MSComm1.Output = "f" End Sub Private Sub REVERSE_Click() Text1.Text = "REVERSE DIRECTION WAS SELECTED" MSComm1.Output = "r" End Sub Private Sub STOP_Click() Text1.Text = "STOP WAS SELECTED" MSComm1.Output = "s" End Sub Private Sub EXIT_Click() MSComm1.Output = "s" 'make sure motor is stopped Unload Me End Sub On the board side the Arduino code waits for a serial signal then sets or clears the outputs as required. //this program receives commands via the visual basic program running on the pc //based on: Patel, Ujash.: "Arduino + Visual Basic 6.0:Make your own software to control Arduino Robot //outputs to the four transistors in the // H bridge controling the motor int pin7 = 7; int pin6 = 6; int pin5 = 5; int pin4 = 4; void setup() { Serial.begin(9600); pinMode(pin7, OUTPUT); pinMode(pin6, OUTPUT); pinMode(pin5, OUTPUT); pinMode(pin4, OUTPUT); //all low/off = stopped digitalWrite(pin4,LOW); digitalWrite(pin5,LOW); digitalWrite(pin6,LOW); digitalWrite(pin7,LOW); } void loop() { if (Serial.available()) { int command = Serial.read(); //all low/off = stopped digitalWrite(pin4,LOW); digitalWrite(pin5,LOW); digitalWrite(pin6,LOW); digitalWrite(pin7,LOW); if (command=='f') //forward { digitalWrite(pin7,HIGH); digitalWrite(pin4,HIGH); } if(command=='r') //reverse { digitalWrite(pin5,HIGH); digitalWrite(pin6,HIGH); } //we initialize to stop with all LOWs above if(command=='s') command = 's'; //dummy statement }//end if(serial) }//end Loop() This project is based on Ujash Patel's book: "Arduino + Visual Basic 6.0: Make your own software to control Arduino Robot" . Amazon.com Kindle Edition.
  4. Last week
  5. This site gives the MPXV7002DPT1 as an alternative to the MPXV7002DP see: https://www.apogeeweb.net/circuitry/mpxv7002dp-transducer-datasheet-features-pinout.html#product-overview This one has a list of exact alternatives also: https://www.newark.com/nxp/mpxv7002dpt1/pressure-sensor-2-to-2kpa-sop/dp/28X3717
  6. Can I replace MPXV7002DP transducer by MPXV7002DPT1? Hi all, I bought a MPXV7002DP transducer after reading a detailed introduction article about this device, here's the link: MPXV7002DP. It says that MPXV7002DPT1 is the alternative of MPXV7002DP. But it didn’t give me their comparison about specifications. I’m not the expert at transducer... The problem is after I got this device I found out that I got a MPXV7002DPT1 at home already, so are these two can be used interchangeably?? Thank you!
  7. But even if we disable debug, it will call print method and do not print anything. I mean we should make it something like #ifdef DEBUG Serial.print("\n debug controlled print"); #endif Here when we disable macro, its like code is not written for compiler, code will be removed in macro processing itself.
  8. It's a great idea to use the battery for a long period of time. Thank you s much for this thread here.
  9. Thanks for your reply. Glad to know more about it.
  10. The 2sc5200 is a large "High-Fidelity Audio Output Amplifier" it would be used as the last stage in a mullti-transistor amplifier. What is the input in to your amplifier? Consider using an op amplifier that would give you a simple amplifier that could use a low level input and give you 5 watts or more output. The LM383/TDA2002 is an 8 watt power amplifier that uses 5 capacitors and 2 resistors. You can drive a 4 ohm speaker directly with It. As it is an old op amp you may find a more modern version of it. The LM383 is available on Ebay.
  11. DC to DC buck converters is a famous topology in the electronic and a widely used circuit in electronic devices. A buck converter steps down the input voltage while it increases the output current. In this article/video, I have discussed a DC to DC buck converter that can be used effectively as a switching power supply. The output voltage and current are adjustable: 1.25V to 30V and 10mA to 6A (continuous). The power supply supports the constant voltage (CV) and constant current (CC) features. Two LEDs demonstrate the CV and CC status. The circuit is compact and both sides of the PCB have been used to mount the components. To design the schematic and PCB, I used Altium Designer 21, also the SamacSys component libraries (Altium plugin) to install the missing schematic symbols/PCB footprints. To get high-quality fabricated PCB boards, I sent the Gerbers to PCBWay. To test the circuit, I used the power analysis feature of the Siglent SDS2102X Plus oscilloscope (or SDS1104X-E), Siglent SDL1020X-E DC Load, and Siglent SDM3045X multimeter. Isn’t cool, so let’s get started! Specifications Input Voltage: 8V to 35VDC Output Voltage: 1.25V to 32VDC Output Current (continuous): 10mA to 6A Output Current (short period): 7A to 8A Output Noise (no load): 6mVrms (9mVp-p) Output Noise (6A load): 7mVrms (85mVp-p) Output Noise (6A load, 16P-average): 50mVp-p Efficiency: up to 96% References Source: https://www.pcbway.com/blog/technology/0_30V__0_7A_Adjustable_Switching_Power_Supply.html [1]: XL4016 datasheet: http://www.xlsemi.com/datasheet/xl4016%20datasheet.pdf [2]: MBR20100 datasheet: https://www.diodes.com/assets/Datasheets/MBR20100C.pdf [3]: TS4264 datasheet: https://www.mouser.com/datasheet/2/395/TS4264_D15-1142598.pdf [4]: MCP6002 datasheet: https://componentsearchengine.com/Datasheets/2/MCP6002T-I_SN.pdf [5]: Altium Designer: https://www.altium.com/yt/myvanitar [6]: SamacSys Altium plugin: https://www.samacsys.com/altium-designer-library-instructions [7]: Supported SamacSys plugins: https://www.samacsys.com/pcb-part-libraries [8]: XL4016 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/part-view/XL4016/XLSEMI [9]: MCP6002 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/search?term=mcp6002 [10]: TS4264 schematic symbol, PCB footprint, 3D model: https://componentsearchengine.com/part-view/TS4264CW50%20RPG/Taiwan%20Semiconductor [11]: MBR20100 schematic symbols, PCb footprint, 3D model: https://componentsearchengine.com/part-view/MBR20100CT-G1/Diodes%20Inc. [12]: Siglent SDS2102X Plus oscilloscope: https://siglentna.com/digital-oscilloscopes/sds2000xp/ [13]: Siglent SDS1104X-E oscilloscope: https://siglentna.com/digital-oscilloscopes/sds1000x-e-series-super-phosphor-oscilloscopes/ [14]: Siglent SDL2010X-E DC Load: https://siglentna.com/dc-electronic-load/sdl1000x/ [15]: Siglent SDM3045X Multimeter: https://siglentna.com/digital-multimeters/sdm3045x-digital-multimeter/
  12. Hi Thanks for reading. Okay I want to build a simple audio amplifier with absolute minimum components. So far with my amateur attempts i have built a single stage amplifier using a 2sc5200 transistor, with a 1uf capacitor and 1000 ohm resistor as an input stage, but it sounds like a glorified headphone amp, very little output about half a watt. Do you have any minimal component designs which can put out about 5 watts, or if this is not possible a two stage amplifier consisting of a driver transistor followed by an output transistor, again minimal components. I have 2sc5200 transistors so will appreciate any designs incorporating these. Thanks
  13. Earlier
  14. you don't need this program. I have a better advice for you. Contact them http://www.majormixing.com/. They will do everything for you. They have professional audio studio and qualified workers. So you won't have to make music yourself because it is much easier and better if they do it. Also if you visit their website you can read reviews about them. You are wellcome
  15. Hi, what modifications I should do to have output 0-24V and 0-1 A? Thanks for help.
  16. CL220 is a high voltage, temperature-compensated, 20mA constant current regulator. The device operates at up to 220V, and is accurate to ±10% over a 5 - 160V range. The device can be used as a two-terminal, constant-current source or a constant-current sink. CL220 Features • 5.0 to 220V operating range (VA-B) • 20mA ±10% at 5.0 - 160V • 0.01% / °C typical temperature coefficient • Packages Types: - TO-252 (D-PAK) • Can be paralleled for higher current
  17. Found this data sheet pdf.datasheetcatalog.com/datasheet/sanyo/ds_pdf_e/STK402-070.pdf My mistake thats 402 not 407
  18. Also looking for the STK407-070B datasheet. Did you eventually find one?
  19. and ... What do you think may still ask if NI provide tools to circumvent the blockade? Will it succeed?😁🙄
  20. You can find information on the subject at the NI subforum: https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/bd-p/140?profile.language=en The NI discussion forum starts here: https://forums.ni.com/t5/Discussion-Forums/ct-p/discussion-forums?profile.language=en
  21. As in the topic, the problem of a large number of adapters : NI GPIB-USB-HS From software version 17.6 (NI 488.2) all Chinese adapters (mainly bought on ebay) are detected as not genuine. So far the solution is to use software version 17.0 (which is also not available on the NI website). But is this the only solution? According to me, there should be at least 2 more: 1 - finding a module (entry) in the software which, after detecting an incorrect number, throws this error. 2 - (or even better) find the entry in the adapter's flash memory where the serial number is and change it Has anyone tried to deal with the topic? So far, I have not been able to find such an entry neither in the software nor in the memory of the adapter, most likely this value is encrypted in some way. and ... ... programmed eeprom 24lc256 (from original unit) serial no. changed in NI MAX but software still sees it as not genuine? WTF? (on version NI MAX > 17.0 ... actual 21)
  22. I'm generally a very terrible gamer, and I just love playing various games on the computer. One of my favorites is CS. GO. I invest a lot of money in the game, which is already scary, and I really like to pump my characters, and I usually do it on https://dmarket.com/csgo-skins/product-card/butterfly-knife-slaughter. I recommend it to everyone!
  23. Materials AmebaD [RTL8722 CSM/DM] x 2 Example Introduction BLE connections use a server client model. The server contains the data of interest, while the client connects to the server to read the data. Commonly, a Bluetooth peripheral device acts as a server, while a Bluetooth central device acts as a client. Servers can contain many services, with each service containing a some set of data. Clients can send requests to read or write some data and can also subscribe to notifications so that the server can send data updates to a client. In this example, a basic battery client is set up on the Ameba Bluetooth stack. The client connects to another Ameba board running the corresponding BLE battery service to read the battery level data. Procedure On the first Ameba board, upload the BLEBatteryService example code and let it run. For the second Ameba board, open the example “Files” -> “Examples” -> “AmebaBLE” -> “BLEBatteryClient”. Upload the code and press the reset button on Ameba once the upload is finished. Open the serial monitor and observe the log messages as the Ameba board with the battery client scans, connects, and reads data from the Ameba board with the battery service. Highlighted in yellow, the Ameba board with the battery client first scans for advertising BLE devices with the advertised device name “AMEBA_BLE_DEV” and the advertised service UUID of 0x180F representing the battery service. After finding the target device, the Ameba board with the battery client forms a BLE connection and searches for a battery service on the connected device, highlighted in blue. With the client connected to the service, the battery client begins to read data using both regular data reads and notifications, highlighted in green. Code Reference BLEClient is used to create a client object to discover services and characteristics on the connected device. setNotifyCallback() is used to register a function that will be called when a battery level notification is received. BLE.configClient() is used to configure the Bluetooth stack for client operation. addClient(connID) creates a new BLEClient object that corresponds to the connected device. For more resources: If you need additional technical documents or the source code for this project. Please visit the official websites and join the Facebook group and forum. Ameba Official Website: https://www.amebaiot.com/en/ Ameba Facebook Group: https://www.facebook.com/groups/amebaioten Ameba Forum: https://forum.amebaiot.com/
  24. Materials Ameba D x 1 Android / iOS mobile phone Example Introduction This example configures the Ameba as a Bluetooth central device, uses the scan functionality to scan for other Bluetooth devices, and prints out the results to the serial monitor. Procedure Open the example, “Files” -> “Examples” -> “AmebaBLE” -> “BLEScan” Upload the code and press the reset button on Ameba once the upload is finished. Open the Arduino serial monitor, and you should see the scan results of nearby Bluetooth devices formatted and printed out. If you have the Bluetooth app nRF Connect installed, you can also use it to send out Bluetooth advertisements for the Ameba to pick up. Code Reference setScanMode(GAP_SCAN_MODE_ACTIVE) is used to set the scan mode. Active scanning will request for an additional scan response data packet from a device when it is found. Passive scanning will only look at the advertisement data, and not request for additional data. setScanInterval() and setScanWindow() are used to set the frequency and duration of scans in milliseconds. A scan will start every interval duration, and each scan will last for the scan window duration. The scan window duration should be lesser or equal to the scan interval. Set a short interval to discover devices rapidly, set a long interval to conserve power. setScanCallback(scanFunction) is used to register a function to be called when scan results are received. This can be used to set a user function for additional processing of scan data, such as looking for a specific device. If no function is registered, the scan results are formatted and printed to the serial monitor by default. beginCentral(0) is used to start the Bluetooth stack in Central mode. The argument 0 is used to indicate that no clients will be operating in central mode. startScan(5000) is used to start the scanning process for a specified duration of 5000 milliseconds. The scan will repeat according to the set scan interval and scan window values. After 5000 milliseconds, the scan process will stop, and will be ready to be started again. For more resources: If you need additional technical documents or the source code for this project. Please visit the official websites and join the Facebook group and forum. Ameba Official Website: https://www.amebaiot.com/en/ Ameba Facebook Group: https://www.facebook.com/groups/amebaioten Ameba Forum: https://forum.amebaiot.com/
  25. The most popular European and U.S. engineering online exhibition is coming! Realtek is invited to participate in the 2021 Industry Tech Days, a European and American engineering online exhibition. The exhibition will from September 13 to 17, 2021, Monday to Friday. Visitors can sign up to watch video channels anytime during the fair. ü Tips: This year, Massimo Banzi who invented Arduino was invited to attend. ü Our Live Webinar:Easy Start to Make your AIoT Dream with Ameba RTL8722DM_MINI Evaluation Board SDK ü Start Time: Monday September 13, 2021 - 10:00 PM CST ü 🔊🔊 FREE Registration now 🔊🔊 https://reurl.cc/R0x6Ar Realtek will introduce “Features of the demo version of Ameba IoT SDK”. It introduces the application of the demo version of Ameba IoT to the AIoT field and the practical operation AIoT machine learning is the main trend of contemporary technology, and is not easy to get started. Realtek’s demo version of Ameba RTL8722DM_MINI Evaluation Board the latest generation in the Ameba D series. It features dual-band Wifi and BT5.0 functions. Compared with the previous generation, it has a smaller size, a microphone, and a micro SD card while supporting three different development platform SDKs, making it easier for users to develop IoT application designs and create works in the field of AIoT rapidly. The theme of Realtek's participation in the exhibition is "Create Your Ingenuity". Let us inspire more new ideas to be realized. 🌍Know more about the event: https://reurl.cc/O09pj9
  1. Load more activity
×
  • Create New...