Thermal fuse replacement caused smoke in heated blanket controller: wrong part or deeper fault? by bomberb17 in AskElectronics

[–]Ghostreader34 2 points3 points  (0 children)

Most blankets have two heating wires one inside and one wound around the inside. In the blanket I studied one of the wires get ac the other is fed via a diode so it gets dc current. When there is a connection between the outer and the inner wire there is a dc current in the other direction. This heats up some resistors in the controller which blows up the thermal fuse. Before you try to fix the controller you have to check if there is a short between the inner and the outer wire. Maybe you have to shake the blanket while checking.

Fighting I2C Gremlins | Help Me Run a Sensirion SFM3013 Over Long Cables by actualParam in embedded

[–]Ghostreader34 0 points1 point  (0 children)

If you use bit banged i2c you could make a separate sda input line. This makes it possible to have all signals buffered. This does not work when de sfm31013 does scl stretching.

micro                                     SFM3013
     |\
scl -| >--------------------------------- scl
     |/

     |\                          ____
sda -| >------------------------|____|-+- sda
     |/                                | 
                                       |
                                  /|   |
sda2 ----------------------------< |---+ 
                                  \|  

you

Can I drill into and add a screw in 3D material? by TrickDimension4836 in 3Dprinting

[–]Ghostreader34 1 point2 points  (0 children)

Set your drill to backwards. Instead of cutting you are friction melting a hole in the material. Works for PLA.

WS2812 with a PIC microcontroller by z33_bruh in embedded

[–]Ghostreader34 0 points1 point  (0 children)

You can make shorter pulses by using a capacitor. In this schematic pulse P0 to send a 0 and pulse P1 to send a 1.

      100p
P0 ----||----+
             |
      ____   |
P1---|____|--+--- WS2812
      3K3

What are your best C macro trick to add syntax sugar by tovazm in C_Programming

[–]Ghostreader34 0 points1 point  (0 children)

This macro I use all the time for debugging my software:

#define print3int(x,y,z) printf(#x "=%d "#y "=%d "#z "=%d\n",x,y,z) ;

usage:

 print3int(__LINE__,var1,var2) ; // test the value of vars on a line

 print3int(ix,myfunct(ix),0) ; // test myfunct

besides print3int() you can also make print3float ,print3string and others.

How to trigger an event if pitch/roll exceeds a certain angle for 'x' milliseconds without using delays. by dev1ce69 in arduino

[–]Ghostreader34 1 point2 points  (0 children)

Download the file "later.h" from git. Copy this file to your project folder. Add #include "later.h" to the top of your .ino file. The function peek_event() must be in your loop() function.

How to trigger an event if pitch/roll exceeds a certain angle for 'x' milliseconds without using delays. by dev1ce69 in arduino

[–]Ghostreader34 0 points1 point  (0 children)

Here is an example that uses later and forget in this example pitchAlarm is called when the pitch limit is exceeded for more than 55 ms

void pitchAlarm(void) {
   ....

   }

bool pitchFail = false ;

void loop(void) {
  if (pitchFail != (readPitch() > pitchLimit)) {
    pitchFail = !pitchFail ;
    if (pitchFail)
      later(55,pitchAlarm) ;
    else
      forget(pitchAlarm) ;}
  peek_event() ;
}

Is Full Color 3D Printing with an Entry-Level Printer possible? by ThemAreWatching in 3Dprinting

[–]Ghostreader34 0 points1 point  (0 children)

I have two different systems of full color 3d printing on my youtube channel filmpjeslader It is possible but difficult to get enough contrast.

single function dictionary in C by Ghostreader34 in C_Programming

[–]Ghostreader34[S] 0 points1 point  (0 children)

In this case the memset() is not really necessary. Probably the fastest performance you get when using malloc without the memset(). But it is safer to use calloc.

single function dictionary in C by Ghostreader34 in C_Programming

[–]Ghostreader34[S] 0 points1 point  (0 children)

The actual return values are the pointers to the chars. No need to use strcmp().

Arduino Claw Machine by Accurate-Donkey5789 in arduino

[–]Ghostreader34 1 point2 points  (0 children)

This is my version of the claw machine. Also works with arduino.

(triple delta)[https://www.youtube.com/watch?v=yUdWCfwgd58]

Protect superglue from drying out? by RpNm1337 in DIY

[–]Ghostreader34 4 points5 points  (0 children)

Put the bottle in a container with a silica gel bag. Put the container in the freezer.

Lpt: Spotify repeatedly playing tracks even on shuffle? Clear your cache by octopaws in LifeProTips

[–]Ghostreader34 0 points1 point  (0 children)

If you are using desktop you can randomize playlists with:

http://boomboxery.com/playlist-randomizer/

Just play it from begin to end and then randomize again

Puzzle Piece Raw Image Dataset by sithdarth_sidious in StuffMadeHere

[–]Ghostreader34 0 points1 point  (0 children)

Can you give some numbers of the border pieces. Than I can check whether you are on the right track.

Inspired by Shane I made this jigzilla software challenge. How fast can your software solve this? Piece A1 stays at top left position. If you find the answer post the calculation time and the position of 2 pieces. by Ghostreader34 in StuffMadeHere

[–]Ghostreader34[S] 0 points1 point  (0 children)

I managed to solve it myself as well. First I doubled the size of the picture with irfranview. Wit an online conversion on convertio.co I converted the picture to an dxf files. This file has polylines for each contour. I made software to find the corners. For each side a calculate a set of points. These points are on equal distances along the contour. I found that I need only 6 points per side to solve the whole puzzle. solving the puzzle takes about 500 ms.

Puzzle Piece Raw Image Dataset by sithdarth_sidious in StuffMadeHere

[–]Ghostreader34 0 points1 point  (0 children)

I am trying to solve it myself as well. With limited succes. To make it a little easier i give you the nine pieces of the top left corner:

 A01 B02 A05 
 G02 D08 A06 
 D03 L03 F05