electronics

Python code run while I stop it by using Keyboard

血红的双手。 提交于 2020-02-06 16:33:28
问题 I have a PhidgetBridge which is connected to 2 gauge strain. I got the signal and make the calibration using this code. But when I run it, it displays me only one print, or I'd like to have many prints (with this code, I'd like the data to be printed with a data interval of 50ms (so 20 Hz)). from Phidget22.Phidget import * from Phidget22.Devices.VoltageRatioInput import * import time import datetime TIME_OUT = 5000 #5s beofre it throws a timeout exception DATA_INTERVAL = 50 #1000ms sample

Send TCP/IP message from PLC to PC using Ladder Program

邮差的信 提交于 2020-01-02 07:53:10
问题 Consider the following Ladder Program that checks if a connection is enabled (A202.00) then send a message from the PLC to the PC. The documentation (Omron CX-Programmer) has a severe lack of explanation of the program convention. What I do not understand is: To send a message from a node to a node. I should need to specify the receiver ID. It seems the function block does not have an option where I can insert an IP address. Am I supposed to MOV an IP address to a DM address (D300) then use

My board design with a FTDI chip is a lot slower than a generic off the shelf RS232 to USB cable. Why is that the case?

别来无恙 提交于 2019-12-25 18:22:10
问题 Hello People of the internet, The company I work at implement hardware that is using RS232 however the board uses a network cable instead of a standard DB9 RS232 connector. So to remove the custom cable they need to mufacture for customers I designed a simple RS232 to USB converter that has a USB on the one side and a network cable on the other. It uses the FT230X chip from FTDI and a standard serial to rs232 converter from ST. However after doing some tests it seems that when I run my

Can I get debug information on USB?

做~自己de王妃 提交于 2019-12-24 10:35:56
问题 Currently I am working on yocto OS for my project. My question regarding debug. In normal practice the debug information is entertained through serial. I aware about ssh debug. I have two question.... Why normally every device support debug on serial port? Is there any possible way to get debug through USB PORT(with out using serial to USB converter) in Yocto? 回答1: Because serial driver can be simple and implementing without interrupts (how Linux kernel console actually does). This is a

How to run opencv on on a microcontroller?

二次信任 提交于 2019-12-22 10:31:35
问题 I don't know lots of things about the electronics field and controllers. But I want to know how to combine an opencv program with a red traffic light? I know that the answer is something that is micro controller but I only know that there is a compiler AVR which can compile C to hex and then working with micro controllers. But OpenCV (which I think I won't run on C) is high level and probably won't work with AVR. So what should I do to combine a machine vision program (by OpenCV & C++) and

Electronic cIrcuit diagram component connection algorithm [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-21 10:46:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I am creating a web-service which is aimed to simulate how do electronic circuits work. The project is not even in the Alpha stage yet. I am stuck with some important milestone of the project: when one tries to connect one component's pin to some other pin - the connection line

What's the easiest, most practical way to toggle several lightbulbs with a PC? [closed]

若如初见. 提交于 2019-12-18 10:05:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . This question is mainly electronics related, but it also has a programming aspect. Some background on the problem We have a traffic light on a wall in our office. When people come in to the office, they can immediately tell from the traffic light whether last night's automatic build & test runs went smoothly:

Arduino - how to get serial data without IDE

时间秒杀一切 提交于 2019-12-12 09:27:03
问题 I am building a prototype drip monitor for a brain shunt. It will monitor the drips and report whatever data I need. The problem is I'm just building the device. A person who knows nothing about Arduinos or code is using it. Is there a way or program to display and/or save data to a file such that a person could just plug the Arduino in and not bother the the IDE or any code? Thanks for the help! 回答1: As noted in the comments, there are many ways to do this depending on budget and other

Controlling voltage supply on usb port using c or any programming language

心不动则不痛 提交于 2019-12-10 11:56:20
问题 I don't have much konwledge in electronics. i wanted to turn on/off led connected to usb port using program. usb port consists 4 line (data+,data-,voltage ,ground) if i connect voltage and ground lines to led , it will glow. i've been searching on internet this issue and i find that it is not possible to control led connected to usb using program because supply over datapin is too low which can not be used to tun on off led. but what if i connect my led to vol and ground pin and control the