Go to advanced search

by IanS
Fri Jun 07, 2019 8:27 am
Forum: Automation, sensing and robotics
Topic: Issue with ultrasonic sensor
Replies: 5
Views: 161

Re: Issue with ultrasonic sensor

Which version of GPIOZero are you using? Before v1.5 there were problems with the DistanceSensor code on Zeros, although other models seemed to work better.
by IanS
Wed May 15, 2019 4:06 pm
Forum: Other projects
Topic: stepper motors rattling
Replies: 4
Views: 289

Re: stepper motors rattling

Looking at your code, you are sending high and low signals for equal times. Many stepper motor controls only need a short pulse (1-2 microseconds) at the required rate. Whether this should be high pulses from a low background or low pulses from a high background may depend on the stepper controller....
by IanS
Tue May 14, 2019 8:40 am
Forum: Other projects
Topic: stepper motors rattling
Replies: 4
Views: 289

Re: stepper motors rattling

Can you drive the motor at a much lower speed? Stepper motors sometimes have a resonant frequency range that is harder to drive, although half- or micro-stepping can help.
by IanS
Wed May 08, 2019 9:41 am
Forum: Networking and servers
Topic: Pi UPS and Connectivity Monitor
Replies: 2
Views: 190

Re: Pi UPS and Connectivity Monitor

For the UPS side, it might be easier to find a small UPS that is supported by NUT ( https://networkupstools.org/ ). There are small UPS devices specifically targeted at the Pi, but I do not know if they support anything like battery level querying. For the modem reset you could use a GPIO controlled...
by IanS
Fri Apr 05, 2019 9:30 am
Forum: Networking and servers
Topic: Data diode using Pi
Replies: 3
Views: 1222

Re: Data diode using Pi

That depends on what you mean by Ethernet. Ethernet is really just a way of moving packets across the network, so layers 1 and 2 (physical and datalink) of the standard OSI network model. Above that you get various other protocols. e.g. IP is layer 3, TCP and UDP are layer 4, etc. Fibre connections ...
by IanS
Mon Apr 01, 2019 9:27 am
Forum: Networking and servers
Topic: Communicating between Pi and Arduino
Replies: 2
Views: 236

Re: Communicating between Pi and Arduino

MQTT supports a number of ways to connect and then a number of levels of assurance that the message gets through. You can use encrypted connections via TLS, which of course adds an overhead, but if you do not need that security then you can skip that. There are then three levels of assurance - best ...
by IanS
Wed Mar 27, 2019 4:44 pm
Forum: Gentoo
Topic: [SOLVED] Behringer UCA202 or HiFiBerry DAC+?
Replies: 8
Views: 1109

Re: Behringer UCA202 or HiFiBerry DAC+?

I've used UCA202/222s (the only difference is the colour and the bundled WIndows software) in Pi music projects with no crackles. I have a bit of hiss, but given that I am running them in a very noisy (electronically) environment, I am pretty certain that is an outside influence. I have used them el...
by IanS
Tue Mar 26, 2019 9:46 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi, Arduino and I2C
Replies: 5
Views: 370

Re: Raspberry Pi, Arduino and I2C

If you connect the three devices that way you could end up with fried raspberry. The Pi GPIO pins can only accept 3.3V inputs, but the arduino uses 5V. You are also powering the sensor with 5V, so that is likely to have 5V output on the logic lines too. The I2C protocol dictates that the lines are p...
by IanS
Wed Mar 20, 2019 8:57 am
Forum: Automation, sensing and robotics
Topic: Best way to get reading from hundreds of LDRs into RPi?
Replies: 15
Views: 1272

Re: Best way to get reading from hundreds of LDRs into RPi?

Connecting the LDRs in a matrix is a good way of reading lots of values with a limited number of A2D converters, and the same layout is used to read a switch matrix. However, there is a problem with switch matrices when multiple switches are triggered, and the same problem will apply here. Look up s...
by IanS
Wed Mar 13, 2019 9:43 am
Forum: Other projects
Topic: Reading audio on Raspberry pi Zero W (stretch)
Replies: 2
Views: 251

Re: Reading audio on Raspberry pi Zero W (stretch)

You say that the audio is streamed from the phone. Have you got it so that the audio can be heard, output through the Pi? If so, then you need a way to capture the audio output. You might be running the ALSA sound toolkit, which is the default for Raspbian but I do not know about other distributions...
by IanS
Tue Mar 12, 2019 5:14 pm
Forum: Automation, sensing and robotics
Topic: CNC controlled nail gun
Replies: 16
Views: 973

Re: CNC controlled nail gun

A conventional motor's speed can be controlled by changing the supplied voltage, within the motor limits, and can handle sudden jumps in the voltage without a problem. A stepper motor speed is controlled by the step rate, and cannot handle sudden jumps. If you have a stationary motor and you try and...
by IanS
Wed Mar 06, 2019 10:39 am
Forum: Networking and servers
Topic: install a firewall on raspberrypi
Replies: 2
Views: 263

Re: install a firewall on raspberrypi

If the Pi is acting as a gateway router (all devices send traffic to the Pi, which then sends it on) then you can control pretty much anything going through it. Time-based control may need the functionality provided by a captive portal, but just about everything else is covered by the 'Linux Advance...
by IanS
Wed Mar 06, 2019 10:21 am
Forum: Networking and servers
Topic: How to build undetectable ethernet sniffer?
Replies: 8
Views: 953

Re: How to build undetectable ethernet sniffer?

Fully agree Jamesh. Anybody interfering (traffic interception counts) with any IT system should have the written/email permission of the person with authority for that network. However, when you do have permission to run sniffers, honeypots, and even targeted hacks in a corporate environment it is a...
by IanS
Tue Mar 05, 2019 12:44 pm
Forum: Networking and servers
Topic: How to build undetectable ethernet sniffer?
Replies: 8
Views: 953

Re: How to build undetectable ethernet sniffer?

As already mentioned, switches learn which ports lead to which devices, and only send packets out of the correct port. Some traffic, like broadcasts, obviously need to go out of all ports. This limits what you can capture. There are at least three ways around this. Use a SPAN port as already mention...
by IanS
Tue Mar 05, 2019 12:09 pm
Forum: Advanced users
Topic: Ping sweep of my network
Replies: 15
Views: 745

Re: Ping sweep of my network

Zabbix is a lot easier to get up and configured than the base Nagios build, but there is now a Raspberry targeted version of Nagios (https://nemslinux.com/) with an improved interface which might make things easier.
by IanS
Tue Feb 26, 2019 10:49 am
Forum: Automation, sensing and robotics
Topic: Raspberry pi3 with arduino like slave to read 5 analogic signals
Replies: 6
Views: 393

Re: Raspberry pi3 with arduino like slave to read 5 analogic signals

Serial.print("1:"); Serial.print(analogRead(A1)); Serial.print ( ",2:"); Serial.print(analogRead(A2)); Serial.print ( ",3:"); Serial.print(analogRead(A3)); Serial.print ( ",4:"); Serial.print(analogRead(A4)); Serial.print ( ","); Then it does not matter whether you read a subset or superset of the o...
by IanS
Tue Feb 26, 2019 10:44 am
Forum: Automation, sensing and robotics
Topic: Sensing the level/volume of a tank full with woodchips
Replies: 13
Views: 783

Re: Sensing the level/volume of a tank full with woodchips

A cut could seriously weaken the tank. How about a high-contrast not-wood-or-tank-colour strip stuck to one inside wall and a camera mounted on the opposite lip. Then see how much of the strip you can see.
Just don't put the camera where it might get damaged getting the chips in or out.
by IanS
Mon Feb 04, 2019 1:14 pm
Forum: Other projects
Topic: I need to build a "force-you-out-of-bed" alarm.
Replies: 1
Views: 208

Re: I need to build a "force-you-out-of-bed" alarm.

Since you have Python experience, use it. Start by understanding how to use one sensor at a time. Look up tutorials on one of the python libraries that talk to the GPIO pins for you, such as GPIOzero. Understand the difference between configuring inputs as pull-up or pull-down. If the input is pulle...
by IanS
Sun Feb 03, 2019 9:19 pm
Forum: Advanced users
Topic: Determining if SSH outbound connection has been made
Replies: 4
Views: 282

Re: Determining if SSH outbound connection has been made

You could look at the output of 'netstat -ant'. While a connection is active you will have a line with [ip]:22 in the local column if the connection is to that machine, or in the foreign column if it is from that machine. If you miss out the 'n' from the options then it will be reported as [ip]:ssh....
by IanS
Fri Jan 25, 2019 10:17 am
Forum: Networking and servers
Topic: Raspberry Pi One Master and Multiple Slaves with ethernet
Replies: 2
Views: 322

Re: Raspberry Pi One Master and Multiple Slaves with ethernet

You can do it at a socket level, but you have to develop your own error handling. UDP is easier to implement to start with, but not as reliable as TCP. Alternatively look at using a message protocol and broker such as mqtt and mosquitto. Each motor controller would subscribe to its own channel, and ...
by IanS
Fri Jan 25, 2019 10:03 am
Forum: Graphics, sound and multimedia
Topic: Replace volume control of USB speaker with a potentiometer
Replies: 17
Views: 988

Re: Replace volume control of USB speaker with a potentiometer

I am guessing that you made a typo, and that 1.75 should have been 17.5. The halfway reading should be between the two end readings. As already mentioned, measuring the values with the pot in place may not be completely accurate, as there may be alternate connectivity paths. Measure the resistance b...
by IanS
Wed Jan 02, 2019 3:09 pm
Forum: Networking and servers
Topic: Using raspberry pi as a firewall
Replies: 1
Views: 1253

Re: Using raspberry pi as a firewall

From a software side you need to enable what is known as IP forwarding. There are plenty of on-line guides covering this, although most of them are about disabling rather enabling it, as it is only needed when the box is acting as a router and can be a security problem in other cases. You then use i...
by IanS
Mon Dec 03, 2018 9:38 am
Forum: Advanced users
Topic: Cloning SD Cards Using Windows
Replies: 3
Views: 827

Re: Cloning SD Cards Using Windows

With any imaging tool that copies the entire media, whether allocated to a partition or not, be aware that not all SD cards are the same capacity for a given label. An '8GB' card might vary slightly from one manufacturer to another. Copying card1 -> image -> card2 will work if card2 is the same size...
by IanS
Wed Nov 07, 2018 12:42 pm
Forum: Automation, sensing and robotics
Topic: pi 3B+ driven camera gimbal, considerations
Replies: 4
Views: 700

Re: pi 3B+ driven camera gimbal, considerations

Brushless motors are normally used for high-power, high-speed systems, such as spinning the blades on a quad-copter. Are you sure this is what you want? Camera position control is normally done by using motors which can go to a defined position accurately. For a small rig this would be done by servo...
by IanS
Tue Oct 30, 2018 2:27 pm
Forum: Networking and servers
Topic: owncloud client/server incompatibility after upgrade
Replies: 8
Views: 870

Re: owncloud client/server incompatibility after upgrade

There is a QWebView module as part of Qt5. That may be the one you are looking for.

Go to advanced search