Proto-App / Proto-Android

Realtime circuit simulator for Android platform.
100 stars 4 forks source link

script IC save as a user component #332

Open stevemilkins opened 4 months ago

stevemilkins commented 4 months ago

Just created a simple AD633 multiplier script, fantastic to emulate less common components. Could objects like this be saved as a user defined component for ease of reuse? Great app!

Proto-App commented 3 months ago

Thank you for interesting idea.

Proto-App commented 3 months ago

@stevemilkins Is there any option to share your AD633 IC? We woul like to put in PROTO for everyone

stevemilkins commented 3 months ago

You are very welcome, its very basic though! Whats the best way to do that?

Best wishes

Steve


From: PROTO Team @.> Sent: 02 April 2024 19:35 To: Proto-App/Proto-Android @.> Cc: stevemilkins @.>; Mention @.> Subject: Re: [Proto-App/Proto-Android] script IC save as a user component (Issue #332)

@stevemilkinshttps://github.com/stevemilkins Is there any option to share your AD633 IC? We woul like to put in PROTO for everyone

— Reply to this email directly, view it on GitHubhttps://github.com/Proto-App/Proto-Android/issues/332#issuecomment-2032785174, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5RZIKT5PPPIMIRN4ITTL3Y3L3ABAVCNFSM6AAAAABETWXS3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSG44DKMJXGQ. You are receiving this because you were mentioned.

Proto-App commented 3 months ago

You can share circuit from PROTO and put link to your project here or simply copy and paste JavaScript code. Thank you!

stevemilkins commented 3 months ago

https://www.protosimulator.com/share?circuit=ad633ring_1712170021738

Hi hope this works, forgive horrible schematic layout - your app deserves better! Ideally needs 5input 1output chip and dpdt switch.


From: PROTO Team @.> Sent: 03 April 2024 09:21 To: Proto-App/Proto-Android @.> Cc: stevemilkins @.>; Mention @.> Subject: Re: [Proto-App/Proto-Android] script IC save as a user component (Issue #332)

You can share circuit from PROTO and put link to your project here or simply copy and paste JavaScript code. Thank you!

— Reply to this email directly, view it on GitHubhttps://github.com/Proto-App/Proto-Android/issues/332#issuecomment-2033885262, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5RZIJC4EXRJJFQLRL76B3Y3O3ZNAVCNFSM6AAAAABETWXS3SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZTHA4DKMRWGI. You are receiving this because you were mentioned.Message ID: @.***>

stevemilkins commented 3 months ago

code for AD633

function readInputs(){ vX1 = in0.getVoltage(); vX2 = in1.getVoltage();
vY1 = in2.getVoltage(); vY2 = in3.getVoltage(); vZ = in4.getVoltage(); vW = ((vX1-vX2) * (vY1-vY2)/10) + vZ; }

readInputs() ;
out0.forceVoltage(vW);