Giter Site home page Giter Site logo

Comments (37)

KuboJakub avatar KuboJakub commented on September 25, 2024 2

I had also an idea about DAC. PWM on arduino has a oportunity to create analog voltage with higher frequences (PWM modes) so DAC wouldnt be needed. But it leeds to lower resolution of input voltage

from automationshield.

KuboJakub avatar KuboJakub commented on September 25, 2024 1

now uses for I2C comunication analog pins A4 and A5. Nex time change for common SDA and SCL pins so it will be compatible with MEGA too. Necessary to mark them on ArduinoShield boards - now without mark.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024 1

In the R1, there is terrible noise on the output... Why?
image
This seems to be the issue instead of the MOSFET.
After some testing it seems that the electromagnet creates an oscillation in the signal, a parallel resistor (this case 100microF) solves it:
image

from automationshield.

erik1392 avatar erik1392 commented on September 25, 2024 1

Looks OK, nice work. The pot will probably collide with usb, you can try rotating it by 90 deg takt only gnd pin can touch usb

from automationshield.

KuboJakub avatar KuboJakub commented on September 25, 2024 1

Did you already sent it? It looks good but today i realised there was a problem by design that some parts of arduino are magnetic. USB, crystal and button. That was reason why i pleaceg electromagnet in the middle of the board.

from automationshield.

KuboJakub avatar KuboJakub commented on September 25, 2024 1

I have just 3 more insulations of the right size and the glue was:
https://www.google.sk/url?sa=i&source=images&cd=&ved=2ahUKEwjF4_bQqfLeAhUCEVAKHZzTAY4QjRx6BAgBEAU&url=%2Furl%3Fsa%3Di%26source%3Dimages%26cd%3D%26ved%3D2ahUKEwjF4_bQqfLeAhUCEVAKHZzTAY4QjRx6BAgBEAU%26url%3Dhttps%253A%252F%252Fceys.cz%252Fsk%252Fprodukty%252Flepidla%252Fspecialni-lepidla%252Fspecial-plastik-na-obtizne-plasty%252F%26psig%3DAOvVaw3-fomba6Fqbf4dpjBChRoZ%26ust%3D1543330863650558&psig=AOvVaw3-fomba6Fqbf4dpjBChRoZ&ust=1543330863650558

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024 1

image
image

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024
  • Only one distance column is sufficient on each side, two is an overkill.
  • The bottom plastic screws are too thick. They prevent the shield from full insertion, because they hit the MCU and the barrel jack.
    image
    image
  • Also @KuboJakub forgot to clip the leads of the IRF520, but that's not really a design problem:)

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

The AOUT LED just takes off ~0.8 V from the DAC. This can have an impact on the performance of the entire system, as it can't push the MOSFET into saturation. Removing the LED can help to get a G-S voltage on the current that goes to 5 V.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

The IRF520 is logic level device. Initially I thought that this is the issue with the R1. However, after comparing the IRF520 and the IRL44 it seems that surprisingly the non-logic level is actually a better choice. This is because the non-saturated part of the IRL44 is smaller than the IRF520 when having 12 V on the drain. The IRF520 seems to be fully open at 5V. The "linear" part is around 3.3 V -- 4.5 V. On the other hadn the IRL44 goes from 1.5-2.0 V, the rest is saturated. Of course ideally the amplification part should be adjusted to the DAC (eg. amplified) so we get more resolution, but this probably is good enough anyways.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

There is no protection resistor for the AOUT pin of the DAC (series resistor) and there is also no resistor between ground and the gate lead of the MOSFET (to define floating states). This should be added in future designs.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

The voltage of the Hall sensor goes to no more than 2.5 V by definition of the sensor. (That's 0 G). So to increase resolution, either an OP-AMP solution or a change in the reference voltage would be suitable. This is not really critical but a nice addition.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

How about a diode for back-emf protection... ? Is there a diode in the MOSFET?

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024
  • Increase input resolution.
  • Increase output resolution.
  • How to measure the voltage on the magnet?
  • How to measure current on the magnet?

from automationshield.

KuboJakub avatar KuboJakub commented on September 25, 2024

The AOUT LED just takes off ~0.8 V from the DAC. This can have an impact on the performance of the entire system, as it can't push the MOSFET into saturation. Removing the LED can help to get a G-S voltage on the current that goes to 5 V.

Yes i should i think i mentioned it in my work too. without led it gives almost 5V but there is that saturation level when is mosfet opened

from automationshield.

KuboJakub avatar KuboJakub commented on September 25, 2024

The voltage of the Hall sensor goes to no more than 2.5 V by definition of the sensor. (That's 0 G). So to increase resolution, either an OP-AMP solution or a change in the reference voltage would be suitable. This is not really critical but a nice addition.

Yes i used bipolar hall sensor...it create +2,5 -2,5V. If we used unipolar, resolution increase and also should totaly disappear influance of pernament magnet on hall sensor data.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@KuboJakub

I had also an idea about DAC. PWM on arduino has a oportunity to create analog voltage with higher frequences (PWM modes) so DAC wouldnt be needed. But it leeds to lower resolution of input voltage

Could be and should be tested, it could be good to get rid of the DAC alltogether. However, these are pulses (at high frequency) which are likely to create funky electromagnetic effects. I'm guessing it is not a good idea, maybe to "rectify" and stabilize it with a capacitor. At the moment I don't have the means to test it though...

Yes i used bipolar hall sensor...it create +2,5 -2,5V. If we used unipolar, resolution increase and also should totaly disappear influance of pernament magnet on hall sensor data.

Can you pick a very similar but unipolar one? I am thinking on making small changes and ordering a new PCB...

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

IRF520 output characteristics
image

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

image

from automationshield.

KuboJakub avatar KuboJakub commented on September 25, 2024

@KuboJakub

I had also an idea about DAC. PWM on arduino has a oportunity to create analog voltage with higher frequences (PWM modes) so DAC wouldnt be needed. But it leeds to lower resolution of input voltage

Could be and should be tested, it could be good to get rid of the DAC alltogether. However, these are pulses (at high frequency) which are likely to create funky electromagnetic effects. I'm guessing it is not a good idea, maybe to "rectify" and stabilize it with a capacitor. At the moment I don't have the means to test it though...

Yes i used bipolar hall sensor...it create +2,5 -2,5V. If we used unipolar, resolution increase and also should totaly disappear influance of pernament magnet on hall sensor data.

Can you pick a very similar but unipolar one? I am thinking on making small changes and ordering a new PCB...

i found this one. There is allways output rangne 2,5-3V. This one is preatty simmilar:
https://uk.farnell.com/texas-instruments/drv5056a3qdbzt/hall-effect-sensor-linear-sot/dp/2899436RL

datasheet to original one:
http://www.farnell.com/datasheets/1934044.pdf?_ga=2.141078448.346893941.1542627791-266032973.1523966527&_gac=1.250924338.1541516015.EAIaIQobChMI_Ir0_4HA3gIVCbDtCh1TxwqVEAAYASAAEgLUwvD_BwE

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@erik1392

Variable string comparisons are not possible, numbers are okay though:

#define FOO 1
// Caveat: variable string expressions are not possible
void setup() {
  Serial.begin(9600);

#ifdef FOO
  Serial.println("FOO is a defined token.");
#endif

#if FOO==1
  Serial.println("FOO is 1");
#elif FOO==2
  Serial.println("FOO is 2");
#else
  Serial.println("FOO is something else.");
#endif
}

void loop() {
}

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@KuboJakub
A marking of the polarity of the magnet would have been nice:)))

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@KuboJakub @mgulan @erik1392
Here is an upgrade to the MagnetoShield. All the changes can be "patched" to the old version, so we have a working set of 10 units. You have until 14:00 today (21.11.2018) to say what you want regarding the design.
image

image
(Not routed yet.)

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@KuboJakub @mgulan @erik1392
Further update. Please review ASAP.

  • Remains compatible with R1
  • Potentiometer added.
  • Coil stabilized by a capacitor, back EMF protection by a diode
  • I2C moved to the universal pins.
  • Board made 3V3 compatible, should work on higher performance Arduinos
  • Analog reference is 3V3 now
  • Electromagnet voltage measured directly (divider)
  • Electromagnet current measured directly (TI chip)
  • Analog inputs capped at 3V3 using zeners.
  • AOUT light removed
  • ...

image

image

Routed:
image
image

from automationshield.

erik1392 avatar erik1392 commented on September 25, 2024

@gergelytakacs
I suggest switching positions of the pot and the logo because it will be to close to that mounting hole for the coil. Maybe also make the logo a bit smaller.

from automationshield.

mgulan avatar mgulan commented on September 25, 2024

Agree with Erik here. Placing the pot in the other corner, near the converter, may be handier, unless there some special reason (routing) to leave it as is. If you checked it does not matter then do not waste time on it. Otherwise, all the modifications to R1 make sense (given your findings), quite an upgrade! Awesome job!

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@KuboJakub @erik1392 @mgulan

Please kindly review ASAP. Changes from last time:

  • MOSFET gate resistor changed to smaller 220R (from 1k)
  • A4 and A5 now remain unused so that the board remains compatible with the Uno. (because of I2C). Also the choice of pins is a bit random, but R1 had the Halll sensor on A3 so I decided to keep that.
  • Pot moved to the upper part. Mind you there is the USB underneath, and I have no clue if it will touch it or not... Similar problem as wihth the FloatShield

image
image

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

Also @erik1392 the holes are 40 mm apart and
image

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@erik1392 If I rotate it 90 deg counter-clockwise, then the wiper will touch ground. If I rotate it 90 deg clockwise then both the GND and the 3V3 pins are likely to touch USB. This is a situation where GND may touch it but the others not. Unsure though... (And I have no better idea)

  • The plastic screws will touch the 328p an will not allow complete insertion anyways. So my guess it will be okay, otherwise it needs to be completely redesigned for a possible R3.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

Here is what went to production:
image
image

from automationshield.

KuboJakub avatar KuboJakub commented on September 25, 2024

My mistake. The place should be okey.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@KuboJakub The electromagnet and the Hall sensor are at the same place.

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

@KuboJakub @erik1392 @mgulan
A quick update:

  • PCB should be with me Thursday (28.11)
  • I already have some new parts from TME
  • I will try to assemble the R2 prototype on the next Tuesday (4.12), for this I will need the 3D printed superstructure from @erik1392 and I may need some assistance from @KuboJakub. Do we have any of those insulation rings left? And also what sort of glue have you used?

from automationshield.

mgulan avatar mgulan commented on September 25, 2024

omg they are fast. looks amazing too!

from automationshield.

gergelytakacs avatar gergelytakacs commented on September 25, 2024

The MagnetoShield R2 is done.

from automationshield.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.