Questions tagged [python]

On-topic questions related to Python would include embedded programming, using it as a tool for circuit analysis, or how Python interacts with computational hardware. Questions about libraries, algorithms, syntax, or code optimization should be directed to stackoverflow.com.

Filter by
Sorted by
Tagged with
0
votes
1answer
132 views

Logic Behind MQx Sensors Calculation - Raspberry Pi

Would you please explain the logic behind this snippet of code which is taken from here for calibrating MQx Sensor(s): ...
0
votes
0answers
62 views

Embedding python interpreter in the TM4c1294XL

I have a python file that I want to run on the board. Hence I want to embed the python interpreter (written in C) in the board. I managed to write separate C project that runs the Python file. It ...
0
votes
2answers
549 views

Why is there no attenuation in the magnetic field at the boundary of the near field?

I have used the Wikipedia FSPL formula for the farfield, and the one kindly provided by @mnsp for the near field: http://grouper.ieee.org/groups/802/15/pub/04/15-04-0417-02-004a-near-field-channel-...
3
votes
1answer
10k views

Digital Potentiometer (MCP4131) with Raspberry Pi

I'm very new in electronic stuff. I'm used to develop for desktop and mobile applications not for hardware products. I try to wire up my Raspberry Pi board with an MCP4131 digital potentiometer. But ...
18
votes
1answer
9k views

ESP8266 eLUA (NodeMCU) vs MicroPython

I am searching for an unbiased, up-to-date comparison of the eLUA (NodeMCU) and MicroPython on ESP8266. I can only find very superficial reports/blogs of users trying out one or the other. - All of ...
8
votes
2answers
9k views

Is there a spice directive to export waveform data in LTspice?

http://www.linear.com/solutions/1815 The above web-page explains how to export the waveform data to a text file. You basically run the LTspice simulation, clicking on the waveform window, go to ...
1
vote
2answers
337 views

Send a logic 1 from a USB port [duplicate]

I have an electronic system waiting to be triggered (no microcontroller for now). My laptop only has USB ports. I want to trigger it using voice recognition (this part is ok). For now the only think ...
-1
votes
1answer
93 views

Any ideas for a hardware to do AM and FM modulation? [closed]

I'm trying to do some signal processing (AM/FM Modulation) for signals from 0 - 60kHz. Any recommendations for hardware? Preferably something I can use MATLAB with (or Python) as I'll most likely be ...
2
votes
3answers
10k views

How to hook Raspberry Pi with Electret Microphone to detect sound levels in dB?

I have to detect sounds levels in an enclosed area, so I thought this could be the right choice. /*EDIT I wish to collect sounds levels of about 30-60dB, normally human conversations or just ...
0
votes
1answer
5k views

Pyserial doesn't read entire line [closed]

I have an Arduino programmed to print a line containing eight values separated by commas every 10 milliseconds. Every line is terminated by a new line character. But when I try to read this data into ...
0
votes
1answer
3k views

Can an XBee in API mode receive data through serial?

Following the python-Xbee library and an example, I am trying to communicate between 2 XBees Using XBee S2C Setup: Coordinator API=2, running the code in python @ Mac Router AT mode, running python ...
0
votes
1answer
1k views

How to create a network of multiple xbee s2 with python and arduino

I'm working on a wireless sensor network in which I have one coordinator router (API mode 2) connected to a Raspberry Pi 2, 5 or more routers in API mode 2 as well. Each router is connected to an ...
-1
votes
2answers
474 views

Using Python to control Brooks MFC Power Supply

Is it possible to use Python to control the Brooks 0152/0154 power supply that powers and controls Brooks MFC units? The manual mentions the pin outs of the RS-232 ...
1
vote
1answer
1k views

What effect does the frequency have in PWM?

I am programming a PWM controlled breathing LED with RPi.GPIO Library in Python on my Raspberry Pi 2. The problem is I understand what the frequency does and what the duty cycle is but not how these ...
1
vote
1answer
252 views

Microcontroller and SDRAM

I have a project where i need to run a python script on a microcontroller. The python script is basically a GUI based script using pyQt and the internal ram of a microcontroller isn't enough. After ...
0
votes
1answer
1k views

Sending AT Commands to Remote XBee using python-serial

I have connected coordinator xbee to serial port of beaglebone i.e . tx and rx of beaglebone. My router's D0 pin is connected to relay. I want to remotely disable or enable the D0 pin. For that i am ...
-2
votes
1answer
797 views

How to connect LM35 Tempreture sensor to xbee

I suppose to calculate actual temperature of remote location using lm35 temperature sensor and xbee sensor. I am getting analog input from sensor, but I am unable to calculate temperature. complete ...
-2
votes
1answer
1k views

How do we communicate between a pc and a beaglebone-black using wifi?

I have been working on a beaglebone-black based mini project which involves displaying a GUI on a screen and displaying sensor values. I have been using python to create the GUI and also interacting ...
7
votes
4answers
5k views

Wheatstone bridge sensitivity and accuracy

From my earlier question I was able to wire up 2 SEN-10245 weight sensors (each forming one half of a wheatstone bridge) with an AD620 InAmp & 47 Ohm resistor (to set the gain to ~1000). I then ...
1
vote
1answer
2k views

XBee Coordinator API not receiving data from Router AT pin 20

A Xbee Series 2 in Router AT configuration with a potentiometer wiper output connected to XBee's pin 20 AD0 is supposed to send the analog data every 100 ms. It was ...
0
votes
3answers
2k views

Faster quadrature decoder loops with Python code

I'm working with a BeagleBone Black and using Adafruit's IO Python library. Wrote a simple quadrature decoding function and it works perfectly fine when the motor runs at about 1800 RPM. But when the ...
0
votes
2answers
113 views

Out-of-band communication between two PCs

I'm working on a little project. In the project, data must be sent from a PC to another device. Initially, I used a Raspberry Pi and life was good. I could communicate Python between the RPi and the ...
2
votes
2answers
517 views

GPIO Input fluctuating between high and low when no input is received

I posted this on the Raspberry Pi StackExchange but I feel as though it might be better suited for here, as the SE is pretty inactive anyway. I've got a fairly simple circuit that I've made where a ...
3
votes
1answer
3k views

Test automation framework/software for hardware applications

I am an Electrical engineer so my background on software testing is limited. My application is not a software testing issue. I need to develop a software package in python to interact with a RF ...
4
votes
5answers
19k views

Python serial between Arduino and Raspberry Pi: Data is modified upon reception

I'm using an Arduino for sensor readings and sending them to a Raspberry Pi via USB, using PySerial for data reception. It works great, except for the fact received data is awkwardly modified (And ...
1
vote
2answers
779 views

Transfer Function Identification from Impulse Response

I'm working on a system involving a stepper motor that is used for moving a carriage back and forth in a linear motion. I have recorded the response (i.e. carriage position vs. time) corresponding to ...
0
votes
2answers
321 views

How does a negative feedback amplifier reach steady state?

I tried to simulate a negative feedback non-inverting op-amp, and got incorrect results. I ran the following time-stepping code in python: ...
0
votes
1answer
2k views

Sending info from python to avr-c

okay so my situation is that i am working an avr chip which is the atmega 328p and what i want to do is i want to lets say have a user input in python lets say the user types in a string and from ...
1
vote
1answer
813 views

High Level Language on an STM32

Are languages like eLua and Micro Python feasible for production level use on an embedded micro like an STM32? There doesn't seem too be much information outside of their sites. Not looking to do ...
2
votes
1answer
390 views

Magic number in ADC Pi code

Im trying to measure temperature using PT100. Im using ADC Pi board for that. ADC Pi uses MCP3424(pdf datasheet) A/D converters, and in datasheet I found how to calculate voltage - it is pretty simple ...
1
vote
1answer
370 views

HC-06 (BT module) becomes un-responsive after ~20 minutes

I am seeing the following behavior on a HT-06 BT module (http://www.amazon.com/gp/product/B009DZQ4MG/ref=od_aui_detailpages00?ie=UTF8&psc=1) wired to an Arduino Uno. The module works great for ~...
2
votes
2answers
887 views

Analyzing sniffed data from pins of LCD 2*16 using Atmega32

I sniffed DB4..7 of an 2*16 LCD using the below circuit : (Atmega32.PORTA1..3 is connected to GND) As you see above I connected En pin of LCD to INT0 of Atmega32 (That is configured for Falling Edge ...
1
vote
1answer
362 views

Serial Link Between 3.3V devices

I have an RPi and a freescale FRDM-KL25z controller which will talk over serial protocol. I'm using the pyserial library on the pi: ...
0
votes
2answers
808 views

Updated- Sending data on USART from Atmega32 To Python

I want to send one word from my Atmega32 to computer using USART serial protocol. As My system doesn't have any COM port, I connected a USB2COM converter cable. And as you see below in Device Manager, ...
2
votes
2answers
103 views

How to customize the 'write' to instrument?

I'm communicating with Power Supply RIGOL DP832A via Ethernet. ...
0
votes
1answer
8k views

Arduino: What is the best way to send and receive data with I2C?

I am using I2C to send and receive int values from a RaspberryPi to an Arduino then echoed back to the Pi. The primary problem I am having is with int values larger than 255. A secondary problem is ...
2
votes
1answer
542 views

Communications issues between Ardupilot and Computer

The Issue and Project: I have been at a standstill with my autopilot because I cannot communicate with it using my high powered transmitter: the Ubiquity Rocket M5. But the whole communications issue ...
-1
votes
1answer
181 views

Hardware accelleration for Python dict?

I wondered if it were possible to accelerate in hardware the Python dict? Dicts are mappings between a key and value that form a large part of the backbone of how Python works. Everything is an object;...
1
vote
2answers
999 views

Arduino Pin value gets stuck

I'm using a Python program to send some message over serial port to Arduino. This message contains the pin number of the pin and whether it should be HIGH or ...
3
votes
2answers
2k views

Can't Get Raspberry Pi and Xbee to Work Together

I am having the hardest time trying to get my XBEE's to work with my Raspberry pi (RP). I have one on a USB breakout board into my computer and the other XBEE connected to a RP. The one on the RP is ...
1
vote
1answer
1k views

XBee + TMP36 temperature sensor - returning inaccurate values

I have rigged up a basic circuit as follows: The XBee is a Pro, series 2. It is configured as a Router using the AT firmware. Pin 20 (D0) is configured as an analog input. There is a co-ordinator ...
-1
votes
3answers
312 views

USB Solarpanel read current with python?

I'd like to connect a small solar panel (2v 50ma) to a USB cable and measure the output on python. Now I was wondering if this would work and how to make it work. How many volts can I send into my pc?...
-4
votes
3answers
5k views

Programming language for Zigbee [closed]

I have done a small research in the field of zigbee. But , a small conflict b/w using python or java or c for zigbee coding in case of remote monitoring .
1
vote
1answer
365 views

How can I get a C program to execute Python code that sends commands to an Arduino? [closed]

I followed these instructions successfully, so I was able to get the Raspberry Pi to send "HELLO\n" to my Arduino Mega 2560 over USB and print to Serial console. I have installed Open CV ...
0
votes
1answer
622 views

Arduino serial via python not working

I have a arduino running with bitlash running on it connected to a shiftbrite. I can use a terminal program to send it commands such as rgb(1023,0,1023) and it will work but when I do it with python ...
0
votes
1answer
464 views

Using Arduino/Processing to print text on screen when an LED light up

I have a question regarding the programming of printing text on the screen after an LED lights up on a breadboard. Should we plug in the LED into the Arduino board or a regular breadboard? How do I ...
3
votes
2answers
4k views

Passing data from Python to Arduino over ethernet

I have an Arduino with Ethernet shield handshaking with my machine over Ethernet, and now I want to send data between them. My problem seems to be correctly parsing the different data types. For ...

1 2
3